diff --git a/scripts/lua/if_stats.lua b/scripts/lua/if_stats.lua index f961000f98dd..d5c2f46eaf98 100644 --- a/scripts/lua/if_stats.lua +++ b/scripts/lua/if_stats.lua @@ -635,15 +635,17 @@ if(ifstats.zmqRecvStats ~= nil) then print("\n") end end - - if (isAdministrator() and ifstats.isView == false and ifstats.isDynamic == false) then + + if (isAdministrator() and ifstats.isView == false and ifstats.isDynamic == false and interface.isPacketInterface()) then print(""..i18n("download").." ") local live_traffic_utils = require("live_traffic_utils") live_traffic_utils.printLiveTrafficForm(ifId) print("\n") - + end + + if (isAdministrator() and ifstats.isView == false and ifstats.isDynamic == false) then print(""..i18n("if_stats_overview.reset_counters").."") print("")