mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 06:28:54 +00:00
chore: adjust getUptimeFormatted method
This commit is contained in:
1 parent
f06f2ae352
commit
5558c0bca2
1 file changed
+1
-3
@@ -10,12 +10,10 @@ export const getUptimeFormatted = async ({ executionId }: GetUptimeFormattedPara
|
||||
});
|
||||
|
||||
try {
|
||||
let uptimeFormattedString: string = '';
|
||||
|
||||
const uptimeInSeconds: number = parseFloat(process.uptime().toFixed(0));
|
||||
const uptimeDate: Date = new Date(0);
|
||||
uptimeDate.setSeconds(uptimeInSeconds);
|
||||
uptimeFormattedString = `${
|
||||
const uptimeFormattedString: string = `${
|
||||
uptimeDate.getUTCDate() - 1
|
||||
}d ${uptimeDate.getUTCHours()}h ${uptimeDate.getUTCMinutes()}m ${uptimeDate.getUTCSeconds()}s`;
|
||||
|
||||
|
||||
Reference in new issue
Block a user