mirror of
https://github.com/gchq/CyberChef
synced 2026-01-05 18:13:15 +00:00
Use toLocaleString for final bake stats
This commit is contained in:
@@ -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}<br>Time: ${durationStr}`;
|
||||
|
||||
Reference in New Issue
Block a user