jdppettit / space-personal

A virtualization control panel written in Python
4 stars 5 forks source link

Fix split error and remove unused import in utilities.py #19

Closed jiajie999 closed 9 years ago

jiajie999 commented 9 years ago

1 Using libvirt api to get cpu status not virsh cmd

error message

-bash-4.1# python utilities.py
用量:0.1%
Traceback (most recent call last):
File "utilities.py", line 101, in <module>
    get_host_stats()
File "utilities.py", line 27, in get_host_stats
   cpu_system = output[0].split("\t")[1]
IndexError: list index out of range