mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Drawing active items in addition to idle in the internals chart
This commit is contained in:
parent
592aaf80e2
commit
b42989154c
4 changed files with 15 additions and 8 deletions
|
|
@ -154,12 +154,18 @@ function ts_dump.update_hash_tables_stats(when, ifstats, verbose)
|
|||
|
||||
for ht_name, ht_stats in pairs(hash_tables_stats) do
|
||||
local num_idle = 0
|
||||
local num_active = 0
|
||||
|
||||
if ht_stats["hash_entry_states"] and ht_stats["hash_entry_states"]["hash_entry_state_idle"] then
|
||||
num_idle = ht_stats["hash_entry_states"]["hash_entry_state_idle"]
|
||||
if ht_stats["hash_entry_states"] then
|
||||
if ht_stats["hash_entry_states"]["hash_entry_state_idle"] then
|
||||
num_idle = ht_stats["hash_entry_states"]["hash_entry_state_idle"]
|
||||
end
|
||||
if ht_stats["hash_entry_states"]["hash_entry_state_active"] then
|
||||
num_active = ht_stats["hash_entry_states"]["hash_entry_state_active"]
|
||||
end
|
||||
end
|
||||
|
||||
ts_utils.append("ht:states", {ifid = ifstats.id, hash_table = ht_name, num_idle = num_idle}, when, verbose)
|
||||
ts_utils.append("ht:state", {ifid = ifstats.id, hash_table = ht_name, num_idle = num_idle, num_active = num_active}, when, verbose)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue