Make S.M.A.R.T. disk temperature label show only integers.
BUG: 411226
This commit is contained in:
parent
a264a28237
commit
df235a7751
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue