Browse Source

fix integer compare

master
Christian Rotzoll 6 years ago
parent
commit
c46d29deef
  1. 2
      home.admin/config.scripts/blitz.powertest.sh

2
home.admin/config.scripts/blitz.powertest.sh

@ -37,7 +37,7 @@ for (( n=0; n<15; ++n )); do
voltFloat=$(echo "${CoreVoltage/V/}*10000" | bc)
voltInt=${voltFloat/.*}
echo "V -> ${voltFloat}/${voltInt}"
if [ ${voltInt} -lt 1.2500 ]; then
if [ ${voltInt} -lt 12500 ]; then
echo "Voltage too low"
else
echo "Voltage OK"

Loading…
Cancel
Save