Make S.M.A.R.T. disk temperature label show only integers.

BUG: 411226
This commit is contained in:
Andrius Štikonas 2019-09-07 11:51:05 +01:00
parent 78f29ae8b5
commit 4b0261230d
1 changed files with 1 additions and 1 deletions

View File

@ -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)