summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-20 14:57:43 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-20 14:57:43 +0200
commit28d4ac6c97fd8021083a523fc713fc6d9322f181 (patch)
tree5f332b4a80df8378b8b29a6e2980e68b456a11db /nest
parenta00e0b5930b6f1e56eed65cb5250aa9120a6f506 (diff)
Fixed display of standby memory
Diffstat (limited to 'nest')
-rw-r--r--nest/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index 96a3ec91..0748c74f 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -120,9 +120,9 @@ cmd_show_memory(void)
print_size("Protocols:", rmemsize(proto_pool));
struct resmem total = rmemsize(&root_pool);
#ifdef HAVE_MMAP
- int pages_kept = atomic_load_explicit(&pages_kept, memory_order_relaxed);
- print_size("Standby memory:", (struct resmem) { .overhead = page_size * pages_kept });
- total.overhead += page_size * pages_kept;
+ int pk = atomic_load_explicit(&pages_kept, memory_order_relaxed);
+ print_size("Standby memory:", (struct resmem) { .overhead = page_size * pk });
+ total.overhead += page_size * pk;
#endif
print_size("Total:", total);
cli_msg(0, "");