diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-08 05:27:44 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-08 22:36:11 +0200 |
commit | e607a7317f602e9bcd87b4ca5cf096035c4fe839 (patch) | |
tree | 05ea21573dcdd18cc0422800d8cdad606fb7d820 /src/oom/oomd-util.c | |
parent | oomd: update system context when oomctl is invoked (diff) | |
download | systemd-e607a7317f602e9bcd87b4ca5cf096035c4fe839.tar.xz systemd-e607a7317f602e9bcd87b4ca5cf096035c4fe839.zip |
oomd: separate entries with comma for readability
Diffstat (limited to '')
-rw-r--r-- | src/oom/oomd-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/oom/oomd-util.c b/src/oom/oomd-util.c index 69d103e71f..7c08d6714f 100644 --- a/src/oom/oomd-util.c +++ b/src/oom/oomd-util.c @@ -607,7 +607,7 @@ void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE fprintf(f, "%sPath: %s\n" "%s\tMemory Pressure Limit: %lu.%02lu%%\n" - "%s\tPressure: Avg10: %lu.%02lu Avg60: %lu.%02lu Avg300: %lu.%02lu Total: %s\n" + "%s\tPressure: Avg10: %lu.%02lu, Avg60: %lu.%02lu, Avg300: %lu.%02lu, Total: %s\n" "%s\tCurrent Memory Usage: %s\n", strempty(prefix), ctx->path, strempty(prefix), LOADAVG_INT_SIDE(ctx->mem_pressure_limit), LOADAVG_DECIMAL_SIDE(ctx->mem_pressure_limit), @@ -635,8 +635,8 @@ void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char assert(f); fprintf(f, - "%sMemory: Used: %s Total: %s\n" - "%sSwap: Used: %s Total: %s\n", + "%sMemory: Used: %s, Total: %s\n" + "%sSwap: Used: %s, Total: %s\n", strempty(prefix), FORMAT_BYTES(ctx->mem_used), FORMAT_BYTES(ctx->mem_total), |