CmdGaps: Now uses Duration::formatHours

This commit is contained in:
Paul Beckingham 2016-05-14 12:28:18 -04:00
parent 35488e21e1
commit ef49a38f6f

View file

@ -84,20 +84,20 @@ int CmdGaps (
table.set (row, 3, today.start.toString ("h:N:S"));
table.set (row, 4, (gap.is_open () ? "-" : today.end.toString ("h:N:S")));
table.set (row, 5, Duration (today.total ()).format ());
table.set (row, 5, Duration (today.total ()).formatHours ());
daily_total += today.total ();
}
if (row != -1)
table.set (row, 6, Duration (daily_total).format ());
table.set (row, 6, Duration (daily_total).formatHours ());
grand_total += daily_total;
}
// Add the total.
table.set (table.addRow (), 6, " ", Color ("underline"));
table.set (table.addRow (), 6, Duration (grand_total).format ());
table.set (table.addRow (), 6, Duration (grand_total).formatHours ());
if (table.rows () > 2)
std::cout << '\n'