tools/kvm_stat: use a namedtuple for storing the values
authorMarc Hartmayer <[email protected]>
Tue, 9 Jan 2018 12:27:02 +0000 (13:27 +0100)
committerPaolo Bonzini <[email protected]>
Sat, 24 Feb 2018 00:43:39 +0000 (01:43 +0100)
commit006f1548ac13d67d21865416a0f4e8062df1a85f
tree1cd9141b5d751773064f6457556cf0997340792f
parentfaa312a543283c717342cd332b5b9247bd305dce
tools/kvm_stat: use a namedtuple for storing the values

Use a namedtuple for storing the values as it allows to access the
fields of a tuple via names. This makes the overall code much easier
to read and to understand. Access by index is still possible as
before.

Signed-off-by: Marc Hartmayer <[email protected]>
Tested-by: Stefan Raspl <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
tools/kvm/kvm_stat/kvm_stat