From d31f3af176fc928afb8443914198f5589225bd86 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Tue, 24 Sep 2024 18:42:27 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20=C2=BA=20from=20Kelvin=20temperature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug fix for issue #170 --- iface/iface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iface/iface.go b/iface/iface.go index 0d4ea91..63b654a 100644 --- a/iface/iface.go +++ b/iface/iface.go @@ -123,7 +123,7 @@ func (u UnitSystem) Temp(tempC float32) (res float32, unit string) { } else if u == UnitsImperial { return tempC*1.8 + 32, "°F" } else if u == UnitsSi { - return tempC + 273.16, "°K" + return tempC + 273.16, "K" } log.Fatalln("Unknown unit system:", u) return