mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
Use toLocaleString for final bake stats
This commit is contained in:
parent
1d20fe13f3
commit
d6a80b4865
1 changed files with 2 additions and 2 deletions
|
@ -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}`;
|
||||
|
|
Loading…
Reference in a new issue