Make stopped ldom utilization appear as zero
authorkn <kn@openbsd.org>
Thu, 10 Aug 2023 07:50:45 +0000 (07:50 +0000)
committerkn <kn@openbsd.org>
Thu, 10 Aug 2023 07:50:45 +0000 (07:50 +0000)
commit116f3cbfa99016305486ec0c1fc58090ee6bb7d6
treed4f546e7f54a5a178ce20f5b74ef0d39f2acf1dc
parent05958c5ea967e389e5e5b6bccc7df53bead5794d
Make stopped ldom utilization appear as zero

ldomctl(8) 'status' updated the value only on running guests,
i.e. stopped ones repeated the last ones instead of showing zero.

Always reset per guest before updating it, From Koakuma, thanks!
usr.sbin/ldomctl/ldomctl.c