Windows fixes

This commit is contained in:
emanuele-f 2018-12-18 10:43:45 +01:00
parent a8d1700252
commit 453f515feb
2 changed files with 4 additions and 2 deletions

View file

@ -42,11 +42,13 @@ function storage_utils.interfaceStorageInfo(ifid)
info["total"] = info["total"] + flows_storage_info.total
end
-- if recording_utils.isAvailable() then
-- if recording_utils.isAvailable() then
if not ntop.isWindows() then
local pcap_storage_info = recording_utils.storageInfo(ifid)
local total_pcap_dump_used = (pcap_storage_info.if_used + pcap_storage_info.extraction_used)
info["pcap"] = total_pcap_dump_used
info["total"] = info["total"] + total_pcap_dump_used
end
-- end
ntop.setCache(key, json.encode(info), 60)