mirror of https://github.com/aristocratos/bpytop
Pedantically removed degree symbol for Kelvin temperature scale, as it is an absolute scale.
parent
45a30ddff8
commit
cbdd62a626
|
@ -5334,7 +5334,7 @@ def temperature(value: int, scale: str = "celsius") -> Tuple[int, str]:
|
|||
elif scale == "fahrenheit":
|
||||
return (round(value * 1.8 + 32), "°F")
|
||||
elif scale == "kelvin":
|
||||
return (round(value + 273.15), "°K")
|
||||
return (round(value + 273.15), "K")
|
||||
elif scale == "rankine":
|
||||
return (round(value * 1.8 + 491.67), "°R")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue