Possible fix for issue #6962

This commit is contained in:
MatteoBiscosi 2022-11-07 10:55:50 +01:00
parent 05e5b50662
commit b7cb9a3481
3 changed files with 11 additions and 4 deletions

View file

@ -19,7 +19,7 @@ local rsp = {}
-- Applications
if view == 'applications' and host then
local host_applications = host["ndpi"]
local host_applications = host["ndpi"] or {}
-- Calculate the total bytes sent and received, to calculate the percentages
for _, v in pairs(host_applications) do
@ -45,7 +45,7 @@ if view == 'applications' and host then
elseif host then
-- Categories
local categories_utils = require "categories_utils"
local host_categories = host["ndpi_categories"]
local host_categories = host["ndpi_categories"] or {}
-- Calculate the total bytes sent and received, to calculate the percentages
for _, v in pairs(host_categories) do