summaryrefslogtreecommitdiff
path: root/nest/cmds.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-09 09:10:44 +0100
committerMaria Matejka <mq@ucw.cz>2022-03-09 09:10:44 +0100
commitc78247f9b97802d6fe76d9b7cddf2c1940134d33 (patch)
tree42c178b7c4dbb19223e07540a4ba06ef60e7e42f /nest/cmds.c
parent06ece3265e222f218224bb394c250cb414e44ab4 (diff)
Single-threaded version of sark-branch memory page management
Diffstat (limited to 'nest/cmds.c')
-rw-r--r--nest/cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index 1a16f9c7..8481bf96 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -108,6 +108,7 @@ print_size(char *dsc, struct resmem vals)
extern pool *rt_table_pool;
extern pool *rta_pool;
+extern uint *pages_kept;
void
cmd_show_memory(void)
@@ -119,8 +120,8 @@ cmd_show_memory(void)
print_size("Protocols:", rmemsize(proto_pool));
struct resmem total = rmemsize(&root_pool);
#ifdef HAVE_MMAP
- print_size("Standby memory:", (struct resmem) { .overhead = get_page_size() * pages_kept });
- total.overhead += get_page_size() * pages_kept;
+ print_size("Standby memory:", (struct resmem) { .overhead = page_size * *pages_kept });
+ total.overhead += page_size * *pages_kept;
#endif
print_size("Total:", total);
cli_msg(0, "");