Revert fix applied on the wrong branch (lp_temp_sensors)
Revert "Added null check for count in _lp_temp_sensors() to stop division by zero errors in case count is still zero." Closes #214. Thanks @jaesivsm This reverts commit 9d96a82c807149c7077baa546e18e9dadb7e7c37. Conflicts: liquidprompt
This commit is contained in:
parent
6da1e9bc6a
commit
7fe87a5cf5
@ -1299,11 +1299,7 @@ _lp_temp_sensors() {
|
||||
temperature=$i
|
||||
fi
|
||||
done
|
||||
if [[ $count -ne 0 ]] ; then
|
||||
echo -ne "$(($temperature/$count))"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
# Will set _LP_TEMP_FUNCTION so the temperature monitoring feature use an
|
||||
|
Loading…
x
Reference in New Issue
Block a user