Commit 1c807474 authored by Valentin Samir's avatar Valentin Samir
Browse files

[analyse] On affiche l'upload et le download total

parent 0d1befbd
......@@ -126,6 +126,13 @@ def stats(ip_crans=[], ip_ext=[],
# on transforme tout en chaine
results = [ [ str(x) for x in line ] for line in results ]
upload = 0
download = 0
for line in results:
print " upload: %sMo" % (upload/1024/1024)
print " download: %sMo" % (download/1024/1024)
# on modifie les ip en noms de machine et les ports en noms
def nom_de_machine (ip) :
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment