igmonplugins icon indicating copy to clipboard operation
igmonplugins copied to clipboard

check_process_list.py: Improve CPU time scaling

Open hasegeli opened this issue 8 years ago • 2 comments

The timedelta object on Python2 doesn't support division. Because of that I had to cast the both sides to int which harms precision and causes DivisionByZero when the script is called again quickly. We can improve this and made the code cleaner once we don't support Python 2 anymore.

hasegeli avatar Jan 17 '18 16:01 hasegeli

You want to support both right now and remove Python2 code after we don't support it anymore?

TheFRedFox avatar Mar 05 '18 16:03 TheFRedFox

Yes

hasegeli avatar Mar 05 '18 16:03 hasegeli