Verified Commit 9b015661 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Present SMART status duration in more human-readable spellout format

BUG: 449386
parent fd4a3308
Pipeline #182764 passed with stage
in 1 minute and 46 seconds
......@@ -35,7 +35,7 @@ SmartAttribute::SmartAttribute(const SmartAttributeParsedData& a) :
m_Assessment(getAssessment(a)),
m_Value(getPrettyValue(a.prettyValue(), a.prettyUnit()))
{
}
QString SmartAttribute::assessmentToString(Assessment a)
......@@ -65,7 +65,7 @@ static QString getPrettyValue(quint64 value, SmartAttributeUnit unit)
switch (unit) {
case SmartAttributeUnit::Miliseconds:
rval = KFormat().formatDuration(value);
rval = KFormat().formatSpelloutDuration(value);
break;
case SmartAttributeUnit::Sectors:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment