mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Rework benchmark stats and charts
This commit is contained in:
parent
d10dfc7762
commit
33949d31fd
10 changed files with 142 additions and 112 deletions
|
|
@ -83,7 +83,7 @@ local function print_callbacks_config_table(descr, expert_view)
|
|||
|
||||
print("<td ".. rowspan .." class='text-center'>")
|
||||
|
||||
if(ts_utils.exists("user_script:duration", {ifid=ifid, user_script=mod_k, subdir="flow"})) then
|
||||
if(ts_utils.exists("flow_user_script:duration", {ifid=ifid, user_script=mod_k, subdir="flow"})) then
|
||||
print('<a href="'.. ntop.getHttpPrefix() ..'/lua/user_script_details.lua?ifid='..ifid..'&user_script='..mod_k..'&subdir=flow"><i class="fa fa-area-chart fa-lg" data-original-title="" title=""></i></a>')
|
||||
end
|
||||
|
||||
|
|
@ -138,8 +138,8 @@ local function print_callbacks_config_table(descr, expert_view)
|
|||
|
||||
-- Print total stats
|
||||
print("</tr><tr><td><b>" .. i18n("total") .. "</b></td><td class='text-center'>")
|
||||
if(ts_utils.exists("user_script:total_stats", {ifid=ifid, subdir="flow"})) then
|
||||
print('<a href="'.. ntop.getHttpPrefix() ..'/lua/user_script_details.lua?ifid='..ifid..'&subdir=flow&user_script='.. total_user_module ..'&ts_schema=user_script:total_duration"><i class="fa fa-area-chart fa-lg"></i></a>')
|
||||
if(ts_utils.exists("flow_user_script:total_stats", {ifid=ifid, subdir="flow"})) then
|
||||
print('<a href="'.. ntop.getHttpPrefix() ..'/lua/user_script_details.lua?ifid='..ifid..'&subdir=flow&user_script='.. total_user_module ..'&ts_schema=custom:flow_user_script:total_stats"><i class="fa fa-area-chart fa-lg"></i></a>')
|
||||
end
|
||||
print("<td>")
|
||||
if(expert_view) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue