displaying traffic on disk

This commit is contained in:
Alfredo Cardigliano 2018-10-15 10:10:54 +02:00
parent fe495f1fea
commit ed73b0050e
2 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,10 @@ if recording_utils.isAvailable then
print("<tr><th nowrap>"..i18n("if_stats_overview.dropped_packets").."</th><td>"..stats['Dropped'].." "..i18n("pkts").."</td></tr>\n")
end
if stats['BytesOnDisk'] ~= nil then
print("<tr><th nowrap>"..i18n("traffic_recording.traffic_on_disk").."</th><td>"..bytesToSize(stats['BytesOnDisk']).."</td></tr>\n")
end
print("<tr><th nowrap>"..i18n("traffic_recording.storage_dir").."</th><td>"..dirs.pcapdir.."</td></tr>\n")
print("<tr><th nowrap>"..i18n("traffic_recording.storage_utilization").."</th><td>"..tostring(math.floor(storage_info.used/1024)).."GB / "..tostring(math.floor(storage_info.total/1024)).."GB ("..storage_info.used_perc..")</td></tr>\n")