Skip to content

Commit b9d194f

Browse files
authored
Use singular if we have one core (#3276)
2 parents 0a962ba + 96be2b7 commit b9d194f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/js/footer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,9 @@ function updateSystemInfo() {
390390
system.cpu.load.raw[2].toFixed(2) +
391391
" on " +
392392
system.cpu.nprocs +
393-
" cores running " +
393+
" core" +
394+
(system.cpu.nprocs > 1 ? "s" : "") +
395+
" running " +
394396
system.procs +
395397
" processes"
396398
);
@@ -404,7 +406,9 @@ function updateSystemInfo() {
404406
system.cpu.load.raw[2].toFixed(2) +
405407
") on " +
406408
system.cpu.nprocs +
407-
" cores running " +
409+
" core" +
410+
(system.cpu.nprocs > 1 ? "s" : "") +
411+
" running " +
408412
system.procs +
409413
" processes"
410414
);

0 commit comments

Comments
 (0)