Implements dropped flow informative alerts

This commit is contained in:
Simone Mainardi 2017-12-14 18:47:52 +01:00
parent 45e2de0108
commit 503e367864
6 changed files with 12 additions and 1 deletions

View file

@ -104,7 +104,6 @@ void GenericTrafficElement::lua(lua_State* vm, bool host_details) {
lua_push_float_table_entry(vm, "last_throughput_pps", last_pkts_thpt);
lua_push_int_table_entry(vm, "throughput_trend_pps", pkts_thpt_trend);
total_num_dropped_flows = 1; /* TODO: remove */
if(total_num_dropped_flows)
lua_push_int_table_entry(vm, "flows.dropped", total_num_dropped_flows);