mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Error fix (attempt to compare nil with number)
This commit is contained in:
parent
62d5f0e53e
commit
ddda5d1824
1 changed files with 1 additions and 1 deletions
|
|
@ -808,7 +808,7 @@ function vs_utils.save_host_to_scan(scan_type, host, scan_result, last_scan_time
|
|||
|
||||
if last_scan_time or last_duration then
|
||||
--local time_formatted = format_utils.formatEpoch(last_scan_time)
|
||||
if last_duration <= 0 then
|
||||
if (last_duration == nil) or (last_duration <= 0) then
|
||||
last_duration = 1
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue