[server/log] Use millisecond precision in realtive time mode

We don't get more precise timings that anyway unless we were to use the 
performance timers
This commit is contained in:
Starbeamrainbowlabs 2019-08-06 12:42:54 +01:00
parent 082eba42ec
commit 0738f8a983
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Log {
}
let prefix = (new Date()).toISOString();
if(this.settings.logging.date_display_mode == "relative") {
prefix = ((new Date() - this.start_time) / 1000).toFixed(4);
prefix = ((new Date() - this.start_time) / 1000).toFixed(3);
}
func(`${this.a.locol}[${prefix}]${this.a.reset}`, ...items);