[statistiques] statistiques pour l'IPv6
darcs-hash:20091228165604-61eff-703cc75ae6eb9610b4eda49f1c2a27fd6a28be47.gz
This commit is contained in:
parent
f53a4406f7
commit
13349d2573
1 changed files with 13 additions and 6 deletions
|
@ -98,13 +98,20 @@ WHERE
|
||||||
GROUP BY ip_crans
|
GROUP BY ip_crans
|
||||||
ORDER BY somme DESC"""
|
ORDER BY somme DESC"""
|
||||||
curseur2.execute(requete)
|
curseur2.execute(requete)
|
||||||
liste_upload2 = tableau(data = [ (l[1], l[2], gethostname(str(l[0])))
|
|
||||||
|
def ipv4or6(addr):
|
||||||
|
if ':' in addr:
|
||||||
|
return "IPv6"
|
||||||
|
else:
|
||||||
|
return "IPv4"
|
||||||
|
|
||||||
|
liste_upload2 = tableau(data = [ (l[1], l[2], ipv4or6(str(l[0])), gethostname(str(l[0])))
|
||||||
for l in curseur2.fetchall()
|
for l in curseur2.fetchall()
|
||||||
if int(l[1]) > 100*1024*1024 ],
|
if int(l[1]) > 100*1024*1024 or ':' in l[0]],
|
||||||
titre = ['upload', 'download', 'machine'],
|
titre = ['upload', 'download', 'proto', 'machine'],
|
||||||
largeur = [10, 10, 30],
|
largeur = [10, 10, 10, 40],
|
||||||
format = ['o', 'o', 's'],
|
format = ['o', 'o', 's', 's'],
|
||||||
alignement = ['d', 'd', 'c']).encode('iso-8859-15')
|
alignement = ['d', 'd', 'c', 'c']).encode('iso-8859-15')
|
||||||
|
|
||||||
|
|
||||||
# Trafic exempté :
|
# Trafic exempté :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue