From 480ac48aae7907786268294a9f9c56322e87bebc Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Mon, 15 Jan 2018 14:13:35 -0700 Subject: [PATCH] Removed '+' from positive temps in hw-sensors --- .bin/Scripts/hw-sensors | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/Scripts/hw-sensors b/.bin/Scripts/hw-sensors index 36655911..2a1a46e0 100755 --- a/.bin/Scripts/hw-sensors +++ b/.bin/Scripts/hw-sensors @@ -51,7 +51,7 @@ def color_temp(temp): color = COLORS['CLEAR'] return '{color}{prefix}{temp:2.0f}°C{CLEAR}'.format( color = color, - prefix = '+' if temp>0 else '-', + prefix = '-' if temp < 0 else '', temp = temp, **COLORS) @@ -78,7 +78,7 @@ def get_feature_string(chip, feature): data[name] = ' {}°C'.format(val) else: data[name] = '{}{:2.0f}°C'.format( - '+' if temp>0 else '-', + '-' if temp < 0 else '', temp) else: data[name] = color_temp(val)