mirror of
https://github.com/wahyd4/upptime.git
synced 2026-08-09 05:06:31 +10:00
🐛 Fix uptime summary calculation
This commit is contained in:
+3
-2
@@ -76,9 +76,10 @@ export const generateSummary = async () => {
|
||||
);
|
||||
});
|
||||
const uptime = (
|
||||
100 -
|
||||
100 *
|
||||
(secondsDown /
|
||||
((new Date().getTime() - new Date(startTime).getTime()) / 1000))
|
||||
(secondsDown /
|
||||
((new Date().getTime() - new Date(startTime).getTime()) / 1000))
|
||||
).toFixed(2);
|
||||
if (!history.data.length) continue;
|
||||
const averageTime =
|
||||
|
||||
Reference in New Issue
Block a user