Skip to content
Snippets Groups Projects
Commit 7472751f authored by Yuriy Vostrikov's avatar Yuriy Vostrikov
Browse files

[core] stop statistic aging if no data sources present

parent 16c49ee5
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,9 @@ stat_print(struct tbuf *buf)
void
stat_age(ev_timer *timer, int events __unused__)
{
if (stats == NULL)
return;
for (int i = 0; stats[i].name != NULL; i++) {
for (int j = 0; j < SECS - 1; j++)
stats[i].value[j + 1] = stats[i].value[j];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment