Make totalSeconds use process.uptime();

This commit is contained in:
IDeletedSystem64 2022-07-04 11:53:42 -05:00
parent f67548a159
commit 8d154b5e8a
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
function Uptime (uptime) { function Uptime (uptime) {
const totalSeconds = (uptime / 1000); const totalSeconds = process.uptime();
const days = parseInt(totalSeconds / 86400); const days = parseInt(totalSeconds / 86400);
const hours = parseInt((totalSeconds % 86400) / 3600); const hours = parseInt((totalSeconds % 86400) / 3600);