Make totalSeconds use process.uptime();
This commit is contained in:
parent
f67548a159
commit
8d154b5e8a
|
@ -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);
|
||||||
|
|
Reference in New Issue