Skip to content

Commit

Permalink
Make S.M.A.R.T. disk temperature label show only integers.
Browse files Browse the repository at this point in the history
BUG: 411226
  • Loading branch information
stikonas committed Sep 7, 2019
1 parent 78f29ae commit 4b02612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/smartstatus.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 4b02612

Please sign in to comment.