File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -635,15 +635,17 @@ if(ifstats.zmqRecvStats ~= nil) then
635635 print (" </td></tr>\n " )
636636 end
637637 end
638-
639- if (isAdministrator () and ifstats .isView == false and ifstats .isDynamic == false ) then
638+
639+ if (isAdministrator () and ifstats .isView == false and ifstats .isDynamic == false and interface . isPacketInterface ()) then
640640 print (" <tr><th>" .. i18n (" download" ).. " <i class=\" fa fa-download fa-lg\" ></i></th><td colspan=5>" )
641641
642642 local live_traffic_utils = require (" live_traffic_utils" )
643643 live_traffic_utils .printLiveTrafficForm (ifId )
644644
645645 print (" </td></tr>\n " )
646-
646+ end
647+
648+ if (isAdministrator () and ifstats .isView == false and ifstats .isDynamic == false ) then
647649 print (" <tr><th width=250>" .. i18n (" if_stats_overview.reset_counters" ).. " </th>" )
648650 print (" <td colspan=5>" )
649651
You can’t perform that action at this time.
0 commit comments