|
|
|
|
@ -880,8 +880,7 @@ void etcpmon_client_add_to_history(struct etcpmon_client* client, struct etcpmon
|
|
|
|
|
|
|
|
|
|
h->head = (h->head + 1) % GRAPH_HISTORY_SIZE; |
|
|
|
|
if (h->count < GRAPH_HISTORY_SIZE) h->count++; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (client->log_file) { |
|
|
|
|
fprintf(client->log_file, "history updated: count=%d head=%d\n", h->count, h->head); |
|
|
|
|
fflush(client->log_file); |
|
|
|
|
|