- sleep(1);
- // reset the counters when the notifciation delay period is switched back to 0
- netconf_alarm_counter.normal = netconf_alarm_counter.warning = \
- netconf_alarm_counter.minor = netconf_alarm_counter.major = \
- netconf_alarm_counter.critical = 0;
-
- ves_alarm_counter.normal = ves_alarm_counter.warning = \
- ves_alarm_counter.minor = ves_alarm_counter.major = \
- ves_alarm_counter.critical = 0;
+ if (notif_delay[0] > 0)
+ {
+ sleep(notif_delay[0]);
+ send_dummy_notif(session);
+ }
+ else
+ {
+ sleep(1);
+ // reset the counters when the notifciation delay period is switched back to 0
+ netconf_alarm_counter.normal = netconf_alarm_counter.warning = \
+ netconf_alarm_counter.minor = netconf_alarm_counter.major = \
+ netconf_alarm_counter.critical = 0;
+
+ ves_alarm_counter.normal = ves_alarm_counter.warning = \
+ ves_alarm_counter.minor = ves_alarm_counter.major = \
+ ves_alarm_counter.critical = 0;
+ }