mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixed display of standby memory
This commit is contained in:
@@ -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, "");
|
||||
|
Reference in New Issue
Block a user