Reduce temperature's precision from six decimal places to two
Summary: BUG: 411226 Test Plan: I couldn't test it since my device does not support SMART Reviewers: stikonas Reviewed By: stikonas Subscribers: #kde_partition_manager Tags: #kde_partition_manager Differential Revision: https://phabricator.kde.org/D23572
This commit is contained in:
parent
6f17476b75
commit
a264a28237
|
@ -82,7 +82,7 @@ QString SmartStatus::tempToString(quint64 mkelvin)
|
||||||
const double celsius = (mkelvin - 273150.0) / 1000.0;
|
const double celsius = (mkelvin - 273150.0) / 1000.0;
|
||||||
const double fahrenheit = 9.0 * celsius / 5.0 + 32;
|
const double fahrenheit = 9.0 * celsius / 5.0 + 32;
|
||||||
return xi18nc("@item:intable degrees in Celsius and Fahrenheit", "%1° C / %2° F",
|
return xi18nc("@item:intable degrees in Celsius and Fahrenheit", "%1° C / %2° F",
|
||||||
QLocale().toString(celsius, 1), QLocale().toString(fahrenheit, 1));
|
QLocale().toString(celsius, 'g', 2), QLocale().toString(fahrenheit, 'g', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString SmartStatus::selfTestStatusToString(SmartStatus::SelfTestStatus s)
|
QString SmartStatus::selfTestStatusToString(SmartStatus::SelfTestStatus s)
|
||||||
|
|
Loading…
Reference in New Issue