Skip to content

Commit

Permalink
Fix CPU load (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubiuser authored Sep 27, 2024
2 parents 4a34c23 + 9bfb338 commit 2066fc4
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 2066fc4

Please sign in to comment.