]> git.pld-linux.org Git - packages/cacti-plugin-thold.git/blob - cacti-plugin-thold-division_by_zero.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-thold.git] / cacti-plugin-thold-division_by_zero.patch
1 diff -dur cacti-plugin-thold-0.4.9.orig/thold/thold_functions.php cacti-plugin-thold-0.4.9/thold/thold_functions.php
2 --- cacti-plugin-thold-0.4.9.orig/thold/thold_functions.php     2012-12-11 17:47:07.000000000 +0100
3 +++ cacti-plugin-thold-0.4.9/thold/thold_functions.php  2012-12-11 17:48:34.789180077 +0100
4 @@ -1587,7 +1587,7 @@
5                         thold_debug('Threshold Baseline check breached');
6  
7                         /* re-alert? */
8 -                       $ra = ($item['bl_fail_count'] > $bl_fail_trigger && ($item['bl_fail_count'] % ($item['repeat_alert'] == '' ? $realert : $item['repeat_alert'])) == 0);
9 +                       $ra = ($item['bl_fail_count'] > $bl_fail_trigger && ($item['bl_fail_count'] % ($item['repeat_alert'] == 0 ? $realert : $item['repeat_alert'])) == 0);
10  
11                         $notify = ($item['bl_fail_count'] == $bl_fail_trigger || $ra);
12  
This page took 0.419036 seconds and 3 git commands to generate.