int status;
llentry_t *le;
+ cdtime_t now = cdtime ();
+ CDTIME_T_TO_TIMESPEC (now, &rf->rf_next_read);
+
pthread_mutex_lock (&read_lock);
if (read_list == NULL)
{
int notif_severity = -1;
- if (strcasecmp (severity, "FAILURE"))
+ if (strcasecmp (severity, "FAILURE") == 0)
notif_severity = NOTIF_FAILURE;
- else if (strcmp (severity, "OKAY"))
+ else if (strcmp (severity, "OKAY") == 0)
notif_severity = NOTIF_OKAY;
- else if ((strcmp (severity, "WARNING"))
- || (strcmp (severity, "WARN")))
+ else if ((strcmp (severity, "WARNING") == 0)
+ || (strcmp (severity, "WARN") == 0))
notif_severity = NOTIF_WARNING;
return (notif_severity);