mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Statistics
- Added last synch time to the stats command output.
This commit is contained in:
parent
dd88965d3a
commit
56f33cf96a
2 changed files with 8 additions and 0 deletions
|
@ -256,6 +256,13 @@ int CmdStatistics::execute (std::string& output)
|
|||
view.set (row, 1, format (STRING_CMD_STATS_CHARS, (int) (descLength / totalT)));
|
||||
}
|
||||
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, STRING_CMD_STATS_LAST_SYNCH);
|
||||
if (context.tdb2.synch_key._file.exists ())
|
||||
view.set (row, 1, Date (context.tdb2.synch_key._file.mtime ()).toISO ());
|
||||
else
|
||||
view.set (row, 1, "-");
|
||||
|
||||
// If an alternating row color is specified, notify the table.
|
||||
if (context.color ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue