Used memory should be calculated by subtracting free memory from total
memory.
Fixes: c588c002cc1 ("tools: remove tmem code and commands")
Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Acked-by: Wei Liu <wl@xen.org>
"%u crashed, %u dying, %u shutdown \n",
num_domains, run, block, pause, crash, dying, shutdown);
- used = xenstat_node_tot_mem(cur_node);
+ used = xenstat_node_tot_mem(cur_node) - xenstat_node_free_mem(cur_node);
freeable_mb = 0;
/* Dump node memory and cpu information */