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:
Olivier Mengué 2013-11-25 23:12:43 +01:00
parent 6da1e9bc6a
commit 7fe87a5cf5

View File

@ -1299,11 +1299,7 @@ _lp_temp_sensors() {
temperature=$i
fi
done
if [[ $count -ne 0 ]] ; then
echo -ne "$(($temperature/$count))"
else
exit
fi
echo -ne "$(($temperature/$count))"
}
# Will set _LP_TEMP_FUNCTION so the temperature monitoring feature use an