Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dylandoamaral/uptime-card
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandoamaral committed Oct 14, 2024
2 parents dbb08a7 + e5bd0df commit 0860eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ As an example, you can print the average uptime as `HH:MM:SS` instead of the ave
```js
[[[
let date = new Date(0);
seconds = Math.trunc((configuration.duration.quantity * 3600) * variables.uptime / 100);
seconds = Math.trunc((configuration.duration.quantity * 3600 * 24) * variables.uptime / 100);
date.setSeconds(seconds);
return date.toISOString().substr(11, 8)
]]]
Expand Down

0 comments on commit 0860eab

Please sign in to comment.