Changeset 358
- Timestamp:
- Sep 20, 2011, 6:54:19 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_log_correlate.h
r265 r358 22 22 void sh_keep_match(); 23 23 24 /* Deadtime for a correlation rule 25 */ 26 int sh_keep_deadtime (const char * str); 27 24 28 #endif -
trunk/src/sh_log_check.c
r357 r358 1315 1315 N_("logmonburstcron"), 1316 1316 sh_repeat_set_cron, 1317 }, 1318 { 1319 N_("logmondeadtime"), 1320 sh_keep_deadtime, 1317 1321 }, 1318 1322 { -
trunk/src/sh_log_correlate.c
r357 r358 180 180 181 181 struct sh_mkeep * mkeep_list = NULL; 182 182 unsigned long mkeep_deadtime = 60; 183 184 int sh_keep_deadtime (const char * str) 185 { 186 unsigned long value; 187 char * foo; 188 189 value = (size_t) strtoul(str, &foo, 0); 190 191 if (*foo == '\0') { 192 mkeep_deadtime = value; 193 return 0; 194 } 195 return -1; 196 } 183 197 184 198 int sh_keep_match_add(const char * str, const char * queue, … … 304 318 305 319 if ((mkeep->reported < now) && 306 ( 60 <(now - mkeep->reported)))320 (mkeep_deadtime < (unsigned int)(now - mkeep->reported))) 307 321 { 308 322 mkeep->reported = now;
Note:
See TracChangeset
for help on using the changeset viewer.