I tested psutils in Ubuntu 11.10 and it works properly.

$ python
Python 2.7.2+ (default, Oct  4 2011, 20:03:08) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_percent()
10.0
>>> psutil.cpu_percent()
5.0
>>> psutil.cpu_percent()
10.0
>>> psutil.cpu_percent()
33.3
>>> psutil.cpu_percent()
60.0
>>> psutil.cpu_percent()
18.2

$ apt-cache policy python-psutil
python-psutil:
  Installed: 0.2.1-1ubuntu1
  Candidate: 0.2.1-1ubuntu1
  Version table:
 *** 0.2.1-1ubuntu1 0
        500 http://it.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/569827

Title:
  psutil.cpu_percent() returns 0.0 although CPU Usage is higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-psutil/+bug/569827/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to