Skip to content

Commit

Permalink
Explicitly clear unicode padding flag on non-unicode units
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Gill <[email protected]>
  • Loading branch information
rrobgill committed Feb 26, 2025
1 parent 6ae23eb commit 2b4980b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,12 @@ GetSystemInformation() {
temperature="${cpu_temp}${temp_unit}"
# convert to Celsius for limit checking
cpu_temp_celsius="$(echo "${cpu_temp}" | awk '{print $1 - 273.15}' | awk -F '.' '{print $1}')"
temp_unicode=false
else # unknown unit
temperature="N/A"
# no conversion needed
cpu_temp_celsius=-274
temp_unicode=false
fi

# CPU temperature heatmap
Expand Down

0 comments on commit 2b4980b

Please sign in to comment.