From 9bfb33869ba855adb34808db29c515e9378d91f2 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Thu, 26 Sep 2024 22:43:49 +0200 Subject: [PATCH] Fix CPU load Signed-off-by: yubiuser --- padd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/padd.sh b/padd.sh index cfb3ead..1cef213 100755 --- a/padd.sh +++ b/padd.sh @@ -413,9 +413,9 @@ GetSystemInformation() { # CPU, load, heatmap core_count=$(GetPADDValue system.cpu.nprocs) - cpu_load_1=$(printf %.2f "$(GetPADDValue system.cpu.load.0)") - cpu_load_5=$(printf %.2f "$(GetPADDValue system.cpu.load.1)") - cpu_load_15=$(printf %.2f "$(GetPADDValue system.cpu.load.2)") + cpu_load_1=$(printf %.2f "$(GetPADDValue system.cpu.load.raw.[0])") + cpu_load_5=$(printf %.2f "$(GetPADDValue system.cpu.load.raw.[1])") + cpu_load_15=$(printf %.2f "$(GetPADDValue system.cpu.load.raw.[2])") cpu_load_1_heatmap=$(HeatmapGenerator "${cpu_load_1}" "${core_count}") cpu_load_5_heatmap=$(HeatmapGenerator "${cpu_load_5}" "${core_count}") cpu_load_15_heatmap=$(HeatmapGenerator "${cpu_load_15}" "${core_count}")