From 57be9101355e95ceda5ee637d22decccafc8bff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 4 Mar 2015 02:09:18 +0100 Subject: [PATCH] dispvm: include memory caches in "used memory" notification Also make the code more readable. --- vm-systemd/prepare-dvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-systemd/prepare-dvm.sh b/vm-systemd/prepare-dvm.sh index a8d0c07..4fc23d7 100755 --- a/vm-systemd/prepare-dvm.sh +++ b/vm-systemd/prepare-dvm.sh @@ -15,7 +15,7 @@ if true; then umount /rw dmesg -c >/dev/null free | grep Mem: | - (read a b c d ; qubesdb-write /qubes-used-mem $c) + (read label total used free shared buffers cached; qubesdb-write /qubes-used-mem $[ $used + $cached ]) # give dom0 time to read some entries, when done it will shutdown qubesdb, # so wait for it qubesdb-watch /stop-qubesdb