[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging-4.13] tools/xentop: Fix calculation of used memory
commit e04b94a54fd550636600f8d32f6076c6167dab52 Author: Sander Eikelenboom <linux@xxxxxxxxxxxxxx> AuthorDate: Wed Feb 19 21:31:30 2020 +0100 Commit: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> CommitDate: Tue May 5 15:10:55 2020 +0100 tools/xentop: Fix calculation of used memory 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@xxxxxxxxxxxxxx> Acked-by: Wei Liu <wl@xxxxxxx> (cherry picked from commit 4b5b431edd984b26f43b3efc7de465f3560a949e) --- tools/xenstat/xentop/xentop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index af11ebfbf7..f9f4dfb453 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -969,7 +969,7 @@ void do_summary(void) "%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 */ -- generated by git-patchbot for /home/xen/git/xen.git#staging-4.13
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |