mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Reworks counting of skipped flow lua calls
This commit is contained in:
parent
739c87a52d
commit
47169b82be
9 changed files with 126 additions and 37 deletions
|
|
@ -28,10 +28,7 @@ class AlertCheckLuaEngine : public LuaEngine {
|
|||
char script_path[MAX_PATH];
|
||||
u_int num_calls;
|
||||
ticks total_ticks;
|
||||
|
||||
u_int32_t num_missed_proto_detected;
|
||||
u_int32_t num_missed_periodic_update;
|
||||
u_int32_t num_missed_idle;
|
||||
virtual void lua_stats_skipped(lua_State *vm) const {};
|
||||
|
||||
public:
|
||||
AlertCheckLuaEngine(AlertEntity alert_entity, ScriptPeriodicity p, NetworkInterface *iface);
|
||||
|
|
@ -42,10 +39,6 @@ class AlertCheckLuaEngine : public LuaEngine {
|
|||
ScriptPeriodicity getPeriodicity() const;
|
||||
const char * getGranularity() const;
|
||||
|
||||
inline void incNumMissedProtoDetected() { num_missed_proto_detected++; }
|
||||
inline void incNumMissedPeriodicUpdate() { num_missed_periodic_update++; }
|
||||
inline void incNumMissedIdle() { num_missed_idle++; }
|
||||
|
||||
void lua_stats(const char * key, lua_State *vm);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue