tools/kvm_stat: fix python3 issues
authorStefan Raspl <stefan.raspl@de.ibm.com>
Fri, 24 Aug 2018 12:03:55 +0000 (14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:54:20 +0000 (08:54 +0200)
commit52614f7bf1b59d0c93402444cd3e4011429f5371
treeb37ab78380b0527ec4ae11bcf03e45b543088d82
parent0d66ce6878690b600bf03ad1bfa9ebf5c043b778
tools/kvm_stat: fix python3 issues

[ Upstream commit 58f33cfe73076b6497bada4f7b5bda961ed68083 ]

Python3 returns a float for a regular division - switch to a division
operator that returns an integer.
Furthermore, filters return a generator object instead of the actual
list - wrap result in yet another list, which makes it still work in
both, Python2 and 3.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/kvm/kvm_stat/kvm_stat