From 5f5b7a26c0629250a20cd559ead3489be8b40980 Mon Sep 17 00:00:00 2001 From: joost_bergen Date: Mon, 26 Apr 2021 19:41:50 +0200 Subject: [PATCH] =?UTF-8?q?Changed=20Kelvin=20temperature=20unit=20string?= =?UTF-8?q?=20from=20"=C2=B0K"=20to=20"K=20"=20as=20Kelvin=20is=20an=20abs?= =?UTF-8?q?olute=20measure.=20The=20space=20after=20"K"=20keeps=20spacing?= =?UTF-8?q?=20consistent.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index d490eb0..d6764a2 100755 --- a/bpytop.py +++ b/bpytop.py @@ -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: