mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
modules/top_talkers.lua: fix issue with json format for top talkers
This commit addresses a bug that was recently introduced in the top talkers json when adding the "Other" talker.
This commit is contained in:
parent
e584eb58ef
commit
42fe686df8
1 changed files with 5 additions and 5 deletions
|
|
@ -150,7 +150,7 @@ function getCurrentTopTalkers(ifid, ifname, filter_col, filter_val, concat, mode
|
|||
end
|
||||
end
|
||||
if (other_stats > 0) then
|
||||
rsp = rsp .. '\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
rsp = rsp .. '},\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
..other_stats_id..'", "url": "", "value": '..other_stats..
|
||||
', "local": "false"'
|
||||
end
|
||||
|
|
@ -180,7 +180,7 @@ function getCurrentTopTalkers(ifid, ifname, filter_col, filter_val, concat, mode
|
|||
end
|
||||
end
|
||||
if (other_stats > 0) then
|
||||
rsp = rsp .. '\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
rsp = rsp .. '},\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
..other_stats_id..'", "url": "", "value": '..other_stats..
|
||||
', "local": "false"'
|
||||
end
|
||||
|
|
@ -317,7 +317,7 @@ function getCurrentTopGroupsSeparated(ifid, ifname, max_num_entries, use_thresho
|
|||
end
|
||||
end
|
||||
if (other_stats > 0) then
|
||||
rsp = rsp .. '\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
rsp = rsp .. '},\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
..other_stats_id..'", "url": "", "value": '..other_stats..
|
||||
', "local": "false"'
|
||||
end
|
||||
|
|
@ -346,7 +346,7 @@ function getCurrentTopGroupsSeparated(ifid, ifname, max_num_entries, use_thresho
|
|||
end
|
||||
end
|
||||
if (other_stats > 0) then
|
||||
rsp = rsp .. '\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
rsp = rsp .. '},\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
..other_stats_id..'", "url": "", "value": '..other_stats..
|
||||
', "local": "false"'
|
||||
end
|
||||
|
|
@ -410,7 +410,7 @@ function getCurrentTopGroups(ifid, ifname, max_num_entries, use_threshold,
|
|||
end
|
||||
end
|
||||
if (other_stats > 0) then
|
||||
rsp = rsp .. '\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
rsp = rsp .. '},\n\t\t { "address": "'..other_stats_id.. '", "label": "'
|
||||
..other_stats_id..'", "url": "", "value": '..other_stats..
|
||||
', "local": "false"'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue