diff --git a/tools/etcpmon/etcpmon_client.c b/tools/etcpmon/etcpmon_client.c index 7eae1e05..8454fdf8 100644 --- a/tools/etcpmon/etcpmon_client.c +++ b/tools/etcpmon/etcpmon_client.c @@ -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);