mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdGaps: Now uses Duration::formatHours
This commit is contained in:
parent
35488e21e1
commit
ef49a38f6f
1 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue