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[]
const start = performance.now();
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