Commit ab0ce338 authored by glondu's avatar glondu

J'ai oublie de commiter cela.

darcs-hash:20060527023839-68412-a25cc7badb3958cd2696eb5617808cddd27cdc40.gz
parent 7512e511
......@@ -70,7 +70,7 @@ curseur.execute(requete)
liste_upload = tableau(data = [ (l[1], l[2], gethostname(str(l[0])))
for l in curseur.fetchall()
if int(l[1]) > 100*1024*1024
and str(l[0]) not in serveurs_ips],
and str(l[0]) not in serveurs_ips ],
titre = ['upload', 'download', 'machine'],
largeur = [10, 10, 30],
format = ['o', 'o', 's'],
......@@ -92,7 +92,7 @@ liste_exemptes = tableau(data = [ [l[1], l[2], socket.gethostbyaddr(str(l[0]))[0
#######################
liste_serveurs = []
for IP in serveurs_ips:
hostname = socket.gethostbyaddr("%s" % IP)[0]
hostname = socket.gethostbyaddr(IP)[0]
requete = """SELECT sum(upload), sum(download)
FROM upload
WHERE
......
Markdown is supported
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