From cd159ef8181075f46c07b700698e31a79c6cb3f7 Mon Sep 17 00:00:00 2001 From: Peter Feichtinger Date: Tue, 9 Jul 2024 17:35:00 +0200 Subject: [PATCH] Use a more sensible format for load average Signed-off-by: Peter Feichtinger --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 74ae1415..ce232ae0 100644 --- a/js/script.js +++ b/js/script.js @@ -129,7 +129,7 @@ }); } - $cpuFooterInfo.text(t('serverinfo', 'Load average: {cpu} (last minute)', { cpu: cpu1 })); + $cpuFooterInfo.text(t('serverinfo', 'Load average: {cpu} (last minute)', { cpu: cpu1.toFixed(2) })); cpuLoadLine.append(new Date().getTime(), cpu1); }