From df235a77517709d211d029234cf6c8893b4aa131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 7 Sep 2019 11:51:05 +0100 Subject: [PATCH] Make S.M.A.R.T. disk temperature label show only integers. BUG: 411226 --- src/core/smartstatus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/smartstatus.cpp b/src/core/smartstatus.cpp index 85b3c81..d640fcc 100644 --- a/src/core/smartstatus.cpp +++ b/src/core/smartstatus.cpp @@ -82,7 +82,7 @@ QString SmartStatus::tempToString(quint64 mkelvin) const double celsius = (mkelvin - 273150.0) / 1000.0; const double fahrenheit = 9.0 * celsius / 5.0 + 32; return xi18nc("@item:intable degrees in Celsius and Fahrenheit", "%1° C / %2° F", - QLocale().toString(celsius, 'g', 2), QLocale().toString(fahrenheit, 'g', 2)); + QLocale().toString(celsius, 'f', 0), QLocale().toString(fahrenheit, 'f', 0)); } QString SmartStatus::selfTestStatusToString(SmartStatus::SelfTestStatus s)