chore: adjust getUptimeFormatted method

This commit is contained in:
Marius Begby committed 2023-09-14 14:25:07 +02:00
1 parent f06f2ae352
commit 5558c0bca2
1 file changed
+1 -3
+1 -3
View File
@@ -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`;