mirror of
https://api.glitch.com/git/presence-button
synced 2024-12-05 02:27:28 +00:00
👆🍓 Checkpoint
./server.js:933874/140
This commit is contained in:
parent
b84f599687
commit
76e79bfbb4
@ -71,9 +71,7 @@ app.get("/api", (req, res) => {
|
|||||||
fuzIsOpen,
|
fuzIsOpen,
|
||||||
lastSeen,
|
lastSeen,
|
||||||
lastClosed,
|
lastClosed,
|
||||||
processUptime: new Date(process.uptime() * 1000)
|
processUptime: formatSeconds(process.uptime())
|
||||||
.toISOString()
|
|
||||||
.substr(11, 8)
|
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
4
|
4
|
||||||
@ -201,8 +199,8 @@ request.post(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const formatSeconds = function () {
|
const formatSeconds = function (seconds) { // https://stackoverflow.com/a/13368349
|
||||||
var seconds = Math.floor(this),
|
var seconds = Math.floor(seconds),
|
||||||
hours = Math.floor(seconds / 3600);
|
hours = Math.floor(seconds / 3600);
|
||||||
seconds -= hours*3600;
|
seconds -= hours*3600;
|
||||||
var minutes = Math.floor(seconds / 60);
|
var minutes = Math.floor(seconds / 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user