diff options
author | Janosch Frank <frankja@linux.vnet.ibm.com> | 2016-01-11 16:17:39 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-26 15:58:12 +0100 |
commit | 639ce1831082084af80290c79f06a5794a3caa0b (patch) | |
tree | 90a3fc0b7ceef1132ee743e987b8b78314eb1ab6 /tests | |
parent | 7aa4ee5a60c6ac651fd2e60b783630e35a7e3ff4 (diff) | |
download | qemu-639ce1831082084af80290c79f06a5794a3caa0b.zip qemu-639ce1831082084af80290c79f06a5794a3caa0b.tar.gz qemu-639ce1831082084af80290c79f06a5794a3caa0b.tar.bz2 |
scripts/kvm/kvm_stat: Introduce main function
The main function should be the main location for initialization and
helps encapsulating variables into a scope. This way they don't have
to be global and might be mistaken for local ones.
As the providers variable is scoped now it can't be accessed from
within the Stats class. Hence, the global access to the variable was
changed to a local one.
Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Message-Id: <1452525484-32309-10-git-send-email-frankja@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions