helper: Now uses Duration::formatHours

This commit is contained in:
Paul Beckingham 2016-05-14 12:27:56 -04:00
parent b59a90fd38
commit 35488e21e1

View file

@ -70,7 +70,7 @@ std::string intervalSummarize (const Rules& rules, const Interval& interval)
out << "Recorded " << tags << '\n'
<< " Started " << interval.range.start.toISOLocalExtended () << '\n'
<< " Ended " << interval.range.end.toISOLocalExtended () << '\n'
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.format () << '\n';
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.formatHours () << '\n';
}
// Interval open.
@ -82,7 +82,7 @@ std::string intervalSummarize (const Rules& rules, const Interval& interval)
if (dur.toTime_t () > 10)
out << " Current " << Datetime ().toISOLocalExtended () << '\n'
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.format () << '\n';
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.formatHours () << '\n';
}
}