0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:30:45 -05:00

Adjusted load time logging to show a max of 2DP

This commit is contained in:
Dev 2024-05-28 18:33:17 +01:00
parent 0dfbf61ddf
commit c72834d778

View File

@ -182,7 +182,7 @@ export class SaveServer
// File found, store in profiles[] // File found, store in profiles[]
const start = performance.now(); const start = performance.now();
this.profiles[sessionID] = this.jsonUtil.deserialize(this.vfs.readFile(filePath), filename); this.profiles[sessionID] = this.jsonUtil.deserialize(this.vfs.readFile(filePath), filename);
this.logger.debug(`Profile: ${sessionID} took: ${performance.now() - start}ms to load.`, true); this.logger.debug(`Profile: ${sessionID} took: ${(performance.now() - start).toFixed(2)}ms to load.`, true);
} }
// Run callbacks // Run callbacks