mirror of https://github.com/aristocratos/bpytop
Changed Kelvin temperature unit string from "°K" to "K " as Kelvin is an absolute measure. The space after "K" keeps spacing consistent.
parent
45a30ddff8
commit
5f5b7a26c0
|
@ -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