mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fixes nil comparison with script_stats.stats.progress
This commit is contained in:
parent
9280bde0f9
commit
34ee6ca4cf
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ for key in pairsByValues(sort_to_key, sOrder) do
|
|||
record["column_ifid"] = string.format("%i", script_stats.ifid)
|
||||
record["column_time_perc"] = script_stats.stats.perc_duration
|
||||
|
||||
if(script_stats.stats.progress > 0) then
|
||||
if script_stats.stats.progress and script_stats.stats.progress > 0 then
|
||||
record["column_progress"] = string.format("%i %%", script_stats.stats.progress)
|
||||
else
|
||||
-- For now prevent a 0 progress froms being erroneusly reported for unsupported activities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue