Skip to content

Commit 806d356

Browse files
committed
Fixed the EVI registered IDs & added some FIXMEs
Fixes #2928
1 parent c6bcd84 commit 806d356

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

evi/evi_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
/* static events exported by the core */
3131
static str evi_core_table[] = {
3232
CORE_EVENT_STR(THRESHOLD),
33+
/* FIXME - if no statistics, the EVI ids will not be working anymore,
34+
* since we don't save the actual ID registered in EVI */
3335
#ifdef STATISTICS
3436
CORE_EVENT_STR(SHM_THRESHOLD),
3537
#endif

evi/evi_core.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
#define EVI_CORE_H
2828

2929
/* events id declared - these must be always incremented by one */
30-
#define EVI_THRESHOLD_ID 0
31-
#define EVI_SHM_THRESHOLD_ID 1
32-
#define EVI_PKG_THRESHOLD_ID 2
33-
#define EVI_PROC_AUTO_SCALE_ID 3
34-
#define EVI_TCP_DISCONNECT 4
30+
/* FIXME - first EVI is E_CORE_SR_STATUS_CHANGED, done outside of EVI core here,
31+
* which is why we start indexing at 1 */
32+
#define EVI_THRESHOLD_ID 1
33+
#define EVI_SHM_THRESHOLD_ID 2
34+
#define EVI_PKG_THRESHOLD_ID 3
35+
#define EVI_PROC_AUTO_SCALE_ID 4
36+
#define EVI_TCP_DISCONNECT 5
3537

3638

3739
#define EVI_CORE_PREFIX "E_CORE_"

0 commit comments

Comments
 (0)