mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix for avoiding invalid table content in hosts page
This commit is contained in:
parent
42d8bc2073
commit
d6eedc2f09
1 changed files with 3 additions and 1 deletions
|
|
@ -213,8 +213,10 @@ if(hosts_stats ~= nil) then
|
|||
elseif custom_column_utils.isCustomColumn(sortColumn) then
|
||||
custom_column_key, custom_column_format = custom_column_utils.label2criteriakey(sortColumn)
|
||||
local val = custom_column_utils.hostStatsToColumnValue(hosts_stats[key], custom_column_key, false)
|
||||
|
||||
if(val == nil) then val = 0 end -- Just to avoid invalid table values
|
||||
|
||||
if tonumber(val) then
|
||||
if(tonumber(val)) then
|
||||
vals[val + postfix] = key
|
||||
else
|
||||
vals[val..postfix] = key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue