]> xenbits.xensource.com Git - xen.git/commit
tools/xentop: Fix calculation of used memory
authorSander Eikelenboom <linux@eikelenboom.it>
Wed, 19 Feb 2020 20:31:30 +0000 (21:31 +0100)
committerWei Liu <wl@xen.org>
Thu, 20 Feb 2020 12:03:21 +0000 (12:03 +0000)
commit4b5b431edd984b26f43b3efc7de465f3560a949e
treef8f1b726d1187c8fd9a64f62e07c4849d157c50a
parent6e0b445ee738cd829ed28c7532cded8afe25886d
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@eikelenboom.it>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstat/xentop/xentop.c