dispvm: include memory caches in "used memory" notification

Also make the code more readable.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-04 02:09:18 +01:00
parent 4303b7dc52
commit 57be910135

View File

@ -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