etcpmon: исправить синтаксис — orphaned код перенесён внутрь функции etcpmon_client_add_to_history
This commit is contained in:
1 parent
71b5173123
commit
246cdc05dc
1 file changed
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user