CloudBotIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
273 stars 249 forks source link

system module's psutil functions are not working #226

Closed tuxxy closed 8 years ago

tuxxy commented 8 years ago

The psutil functions do not work, this is because system.py is using deprecated function names from the psutil library.

Here are the tracebacks:

Traceback (most recent call last):

cpu_usage = process.get_cpu_percent()
    AttributeError: 'Process' object has no attribute 'get_cpu_percent'

and

cpu_usage = process.get_cpu_percent()
    AttributeError: 'Process' object has no attribute 'get_cpu_percent'

These function names were deprecated in version 2.0.0 of psutil.

I'll be making a pull request shortly.

astrutt commented 8 years ago

Thanks TUX!!!

tuxxy commented 8 years ago

Thanks for the merge.