Skip to content

Commit

Permalink
Handle neagative temperature in _lp_acpi_temp
Browse files Browse the repository at this point in the history
  • Loading branch information
l-vincent-l authored and dolmen committed Aug 18, 2014
1 parent d456155 commit 71321c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquidprompt
Expand Up @@ -1380,7 +1380,7 @@ _lp_temp_sensors()
_lp_temp_acpi()
{
local i
for i in $(acpi -t | sed 's/.* \([0-9]*\)\.[0-9]* degrees C$/\1/p'); do
for i in $(acpi -t | sed 's/.* \([-]\?[0-9]*\)\.[0-9]* degrees C$/\1/p'); do
[[ $i -gt $temperature ]] && temperature=$i
done
}
Expand Down

0 comments on commit 71321c8

Please sign in to comment.