igmonplugins
igmonplugins copied to clipboard
check_process_list.py: Improve CPU time scaling
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.
You want to support both right now and remove Python2 code after we don't support it anymore?
Yes