mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Update src/components/HeartbeatBar.vue
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
0439566164
commit
4160045ee4
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ export default {
|
|||
return this.normalizedHeartbeatBarDays * 24) + "h";
|
||||
}
|
||||
|
||||
// For auto mode, calculate from actual data
|
||||
// Need to calculate from actual data
|
||||
const firstValidBeat = this.shortBeatList.at(this.numPadding);
|
||||
const minutes = dayjs().diff(dayjs.utc(firstValidBeat?.time), "minutes");
|
||||
return minutes > 60 ? Math.floor(minutes / 60) + "h" : minutes + "m";
|
||||
|
|
Loading…
Add table
Reference in a new issue