🐛 Fix uptime summary calculation

This commit is contained in:
Anand Chowdhary
2020-08-10 18:50:44 +05:30
parent c59dc4bd94
commit ff3f33d71f
+3 -2
View File
@@ -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 =