commit | bbc35a5600bcb0ea89f9fca29aa54a688425a432 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Wed Nov 19 15:33:07 2014 -0800 |
committer | Kir Kolyshkin <kir@openvz.org> | Wed Nov 19 15:36:25 2014 -0800 |
tree | cddc6300ea2d541ddbe9e9359b04e7e3ae192f17 | |
parent | 0e6c9a73539fd9333e2fa1eeeb36b2c9a2d0df0d [diff] |
vzlist: fix cpuunits rounding As pointed out by the bug reporter: we have a similar bug to #3063 with the CPU units value: [root@neko ~]# vzctl set 190 --cpuuunits 9 [root@neko ~]# cat /proc/vz/fairsched/190/cpu.shares 9 [root@neko ~]# vzlist -Ho cpuunits 190 8 The fix is the same as in commit c1baf6c41e1 -- use floating point and round the result. https://bugzilla.openvz.org/3120 Reported-by: Kevin Holly <root@hallowe.lt> Signed-off-by: Kir Kolyshkin <kir@openvz.org>