From 7fe87a5cf557cbcc7aea59ffb5a74cb98399fd7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 25 Nov 2013 23:12:43 +0100 Subject: [PATCH] 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 --- liquidprompt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/liquidprompt b/liquidprompt index c20d0bd..26021eb 100755 --- a/liquidprompt +++ b/liquidprompt @@ -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