mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Possible fix for issue #6962
This commit is contained in:
parent
05e5b50662
commit
b7cb9a3481
3 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue