Statistics
- Added last synch time to the stats command output.
This commit is contained in:
@@ -256,6 +256,13 @@ int CmdStatistics::execute (std::string& output)
|
|||||||
view.set (row, 1, format (STRING_CMD_STATS_CHARS, (int) (descLength / totalT)));
|
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 an alternating row color is specified, notify the table.
|
||||||
if (context.color ())
|
if (context.color ())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -237,6 +237,7 @@
|
|||||||
#define STRING_CMD_STATS_AVG_PEND "Average time pending"
|
#define STRING_CMD_STATS_AVG_PEND "Average time pending"
|
||||||
#define STRING_CMD_STATS_DESC_LEN "Average desc length"
|
#define STRING_CMD_STATS_DESC_LEN "Average desc length"
|
||||||
#define STRING_CMD_STATS_CHARS "{1} characters"
|
#define STRING_CMD_STATS_CHARS "{1} characters"
|
||||||
|
#define STRING_CMD_STATS_LAST_SYNCH "Last server synchronization"
|
||||||
#define STRING_CMD_REPORTS_USAGE "Lists all supported reports"
|
#define STRING_CMD_REPORTS_USAGE "Lists all supported reports"
|
||||||
#define STRING_CMD_REPORTS_REPORT "Report"
|
#define STRING_CMD_REPORTS_REPORT "Report"
|
||||||
#define STRING_CMD_REPORTS_DESC "Description"
|
#define STRING_CMD_REPORTS_DESC "Description"
|
||||||
|
|||||||
Reference in New Issue
Block a user