From d6a80b48657765d6483358f36889f00969702b5a Mon Sep 17 00:00:00 2001 From: j433866 Date: Fri, 31 May 2019 09:59:23 +0100 Subject: [PATCH] Use toLocaleString for final bake stats --- src/web/WorkerWaiter.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/WorkerWaiter.mjs b/src/web/WorkerWaiter.mjs index 2867b906..91f01b5d 100644 --- a/src/web/WorkerWaiter.mjs +++ b/src/web/WorkerWaiter.mjs @@ -356,7 +356,7 @@ class WorkerWaiter { bakingComplete() { this.setBakingStatus(false); let duration = new Date().getTime() - this.bakeStartTime; - duration = duration.toString() + "ms"; + duration = duration.toLocaleString() + "ms"; const progress = this.getBakeProgress(); let width = progress.total.toString().length; @@ -365,7 +365,7 @@ class WorkerWaiter { } width = width < 2 ? 2 : width; - const totalStr = progress.total.toString().padStart(width, " ").replace(/ /g, " "); + const totalStr = progress.total.toLocaleString().padStart(width, " ").replace(/ /g, " "); const durationStr = duration.padStart(width, " ").replace(/ /g, " "); const msg = `Total: ${totalStr}
Time: ${durationStr}`;