Browse code

core: update fwd_reqs stat (cherry picked from commit 6a84eeebc2575d90d5795abb95af33ab37407aef)

Daniel-Constantin Mierla authored on 13/10/2009 19:40:04
Showing 1 changed files
... ...
@@ -72,6 +72,7 @@
72 72
 #include "config.h"
73 73
 #include "parser/msg_parser.h"
74 74
 #include "route.h"
75
+#include "events.h"
75 76
 #include "dprint.h"
76 77
 #include "globals.h"
77 78
 #include "cfg_core.h"
... ...
@@ -581,6 +582,8 @@ end:
581 581
 #endif
582 582
 	if (buf) pkg_free(buf);
583 583
 	/* received_buf & line_buf will be freed in receive_msg by free_lump_list*/
584
+	if(ret==0)
585
+		sr_event_exec(SREV_CORE_STATS, (void*)1);
584 586
 	return ret;
585 587
 }
586 588