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']
|
color = COLORS['CLEAR']
|
||||||
return '{color}{prefix}{temp:2.0f}°C{CLEAR}'.format(
|
return '{color}{prefix}{temp:2.0f}°C{CLEAR}'.format(
|
||||||
color = color,
|
color = color,
|
||||||
prefix = '+' if temp>0 else '-',
|
prefix = '-' if temp < 0 else '',
|
||||||
temp = temp,
|
temp = temp,
|
||||||
**COLORS)
|
**COLORS)
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ def get_feature_string(chip, feature):
|
||||||
data[name] = ' {}°C'.format(val)
|
data[name] = ' {}°C'.format(val)
|
||||||
else:
|
else:
|
||||||
data[name] = '{}{:2.0f}°C'.format(
|
data[name] = '{}{:2.0f}°C'.format(
|
||||||
'+' if temp>0 else '-',
|
'-' if temp < 0 else '',
|
||||||
temp)
|
temp)
|
||||||
else:
|
else:
|
||||||
data[name] = color_temp(val)
|
data[name] = color_temp(val)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue