dispvm: include memory caches in "used memory" notification
Also make the code more readable.
This commit is contained in:
parent
4303b7dc52
commit
57be910135
@ -15,7 +15,7 @@ if true; then
|
|||||||
umount /rw
|
umount /rw
|
||||||
dmesg -c >/dev/null
|
dmesg -c >/dev/null
|
||||||
free | grep Mem: |
|
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,
|
# give dom0 time to read some entries, when done it will shutdown qubesdb,
|
||||||
# so wait for it
|
# so wait for it
|
||||||
qubesdb-watch /stop-qubesdb
|
qubesdb-watch /stop-qubesdb
|
||||||
|
Loading…
Reference in New Issue
Block a user