mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
fix mistake on time format
This commit is contained in:
@@ -9,7 +9,7 @@ export class Timer {
|
||||
elapsed() {
|
||||
let elapsed = this.parseHrtimetoSeconds(process.hrtime(this.startTime));
|
||||
let h = Math.floor(elapsed / 3600);
|
||||
let m = Math.floor(elapsed / 60);
|
||||
let m = Math.floor((elapsed / 60) % 60);
|
||||
let s = Math.floor(elapsed % 60);
|
||||
return `${h ? h + "h" : ""}${m ? m + "m" : ""}${s + "s"}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user