mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Code cleanup
This commit is contained in:
parent
91ad5f05cd
commit
8811a076a6
5 changed files with 94 additions and 81 deletions
|
|
@ -1,3 +1,7 @@
|
|||
--
|
||||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
-- ########################################################
|
||||
|
||||
local ts_utils = require("ts_utils_core")
|
||||
|
|
@ -19,15 +23,15 @@ local function iface_update_periodic_ht_state_update_stats(when, ifid, periodic_
|
|||
idle = stats.num_skipped_idle,
|
||||
proto_detected = stats.num_skipped_proto_detected,
|
||||
periodic_update = stats.num_skipped_periodic_update
|
||||
}, when, verbose)
|
||||
}, when)
|
||||
|
||||
ts_utils.append("flow_script:pending_calls", {ifid = ifid,
|
||||
proto_detected = stats.num_pending_proto_detected,
|
||||
periodic_update = stats.num_pending_periodic_update
|
||||
}, when, verbose)
|
||||
}, when)
|
||||
|
||||
ts_utils.append("flow_script:lua_duration", {ifid = ifid, num_ms = stats["tot_duration_ms"]}, when, verbose)
|
||||
ts_utils.append("flow_script:successful_calls", {ifid = ifid, num_calls = stats["num_successful"]}, when, verbose)
|
||||
ts_utils.append("flow_script:lua_duration", {ifid = ifid, num_ms = stats["tot_duration_ms"]}, when)
|
||||
ts_utils.append("flow_script:successful_calls", {ifid = ifid, num_calls = stats["num_successful"]}, when)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue