no bc dependency
This commit is contained in:
parent
8585c5c729
commit
73f3909202
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ echo "--- System Metrics ---"
|
|||
|
||||
# The value is usually in millidegrees Celsius, so we divide by 1000.
|
||||
# We use 'bc' for floating-point arithmetic.
|
||||
temp_celsius=$(echo "scale=2; $raw_temp / 1000" | bc)
|
||||
temp_celsius=$((raw_temp / 1000))
|
||||
|
||||
echo "CPU Temperature: ${temp_celsius}°C"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue