Advertisement
timp87

patch-zbx20_src_timer.c

Feb 6th, 2013
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. --- src/zabbix_server/timer/timer.c.orig    2012-12-08 15:09:15.000000000 +0400
  2. +++ src/zabbix_server/timer/timer.c     2013-02-06 11:04:54.000000000 +0400
  3. @@ -471,7 +471,7 @@
  4.         get_trigger_values(triggerid, maintenance_from, maintenance_to,
  5.                 &value_before, &value_inside, &value_after);
  6.  
  7. -       if (value_before == value_inside && value_inside == value_after)
  8. +       if (value_before == value_after)
  9.             continue;
  10.  
  11.         if (tr_num == tr_alloc)
  12. @@ -493,7 +493,7 @@
  13.         for (i = 0; i < tr_num; i++)
  14.         {
  15.             process_event(eventid++, EVENT_SOURCE_TRIGGERS, EVENT_OBJECT_TRIGGER, tr[i].triggerid,
  16. -                   &ts, tr[i].new_value, TRIGGER_VALUE_CHANGED_NO, 0, 1);
  17. +                   &ts, tr[i].new_value, TRIGGER_VALUE_CHANGED_YES, 0, 1);
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement