Cacti / plugin_thold

Thold Plugin for Cacti
GNU General Public License v2.0
61 stars 60 forks source link

Prevent zero threshold value CPU loop #618

Closed unka65 closed 10 months ago

unka65 commented 10 months ago

In trying to edit a specific threshold, the webpage hung and the web server task consumed the CPU. Eventually a 500 error was returned when the PHP limit was hit. After adding debug output progressively through the code, it was determined that the loop was triggered by a threshold low value of zero in the function that converts from raw to display format. With this change, the loop no longer occurs.