Removed '+' from positive temps in hw-sensors
This commit is contained in:
parent
0e87bf55a0
commit
480ac48aae
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue