2
0
Эх сурвалжийг харах

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

Daniel-Constantin Mierla 16 жил өмнө
parent
commit
878d2c6bf0
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      forward.c

+ 3 - 0
forward.c

@@ -72,6 +72,7 @@
 #include "config.h"
 #include "parser/msg_parser.h"
 #include "route.h"
+#include "events.h"
 #include "dprint.h"
 #include "globals.h"
 #include "cfg_core.h"
@@ -581,6 +582,8 @@ end:
 #endif
 	if (buf) pkg_free(buf);
 	/* received_buf & line_buf will be freed in receive_msg by free_lump_list*/
+	if(ret==0)
+		sr_event_exec(SREV_CORE_STATS, (void*)1);
 	return ret;
 }