Skip to content

Commit 6d46fe2

Browse files
committed
fix statsd parsing of memory statistics
1 parent 5ca9d54 commit 6d46fe2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

audisp/plugins/statsd/audisp-statsd.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ static void get_auditd_status(void)
284284
&r.plugin_max_depth);
285285
} else if (memcmp(buf, "glibc arena", 11) == 0) {
286286
sscanf(buf,
287-
"glibc total memory is: %llu",
287+
"glibc arena (total memory) is: %llu",
288288
&r.total_memory);
289289
} else if (memcmp(buf, "glibc uordblks", 13) == 0) {
290290
sscanf(buf,
291-
"glibc in use memory is: %llu",
291+
"glibc uordblks (in use memory) is: %llu",
292292
&r.memory_in_use);
293293
} else if (memcmp(buf, "glibc fordblks", 14) == 0) {
294294
sscanf(buf,
295-
"glibc total free space is: %llu",
295+
"glibc fordblks (total free space) is: %llu",
296296
&r.memory_free);
297297
break; // This is last item, break free
298298
}
@@ -472,4 +472,3 @@ static void handle_event(auparse_state_t *au, auparse_cb_event_t cb_event_type,
472472
break;
473473
}
474474
}
475-

0 commit comments

Comments
 (0)