diff --git a/summary.ts b/summary.ts index bf8159a8..de56d768 100644 --- a/summary.ts +++ b/summary.ts @@ -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 =