cmdmon: add serverstats command

Add a new command to obtain a server report with the new clientlog
statistics.
This commit is contained in:
Miroslav Lichvar
2016-01-18 17:09:36 +01:00
parent f52a738660
commit 9b019a03e7
6 changed files with 62 additions and 2 deletions

View File

@@ -611,3 +611,15 @@ CLG_GetClientAccessReportByIndex(int index, RPT_ClientAccessByIndex_Report *repo
return 1;
}
/* ================================================== */
void
CLG_GetServerStatsReport(RPT_ServerStatsReport *report)
{
report->ntp_hits = total_ntp_hits;
report->cmd_hits = total_cmd_hits;
report->ntp_drops = total_ntp_drops;
report->cmd_drops = total_cmd_drops;
report->log_drops = total_record_drops;
}