cherrypy / cherrypy

CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev
https://docs.cherrypy.dev
BSD 3-Clause "New" or "Revised" License
1.8k stars 357 forks source link

handled divide by error in cpstats.py for 'Bytes Read/Second' and 'Bytes Written/Second' #1996

Open barathkumarg opened 1 year ago

barathkumarg commented 1 year ago

Handled the 'Bytes Read/Second' and 'Bytes Written/Second' for Divide by zero error as i executed this cp_stats for cherrpy as a seperate thread to print the status, at that that since the time.time() - s['start time'] were same in some scenario causing the divide by zero it this columns