Skip to content

Commit

Permalink
Fix CPU load
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Sep 26, 2024
1 parent 4a34c23 commit 9bfb338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 9bfb338

Please sign in to comment.