J'ai oublie de commiter cela.
darcs-hash:20060527023839-68412-a25cc7badb3958cd2696eb5617808cddd27cdc40.gz
This commit is contained in:
parent
7512e511d9
commit
ab0ce3387d
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ curseur.execute(requete)
|
||||||
liste_upload = tableau(data = [ (l[1], l[2], gethostname(str(l[0])))
|
liste_upload = tableau(data = [ (l[1], l[2], gethostname(str(l[0])))
|
||||||
for l in curseur.fetchall()
|
for l in curseur.fetchall()
|
||||||
if int(l[1]) > 100*1024*1024
|
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'],
|
titre = ['upload', 'download', 'machine'],
|
||||||
largeur = [10, 10, 30],
|
largeur = [10, 10, 30],
|
||||||
format = ['o', 'o', 's'],
|
format = ['o', 'o', 's'],
|
||||||
|
@ -92,7 +92,7 @@ liste_exemptes = tableau(data = [ [l[1], l[2], socket.gethostbyaddr(str(l[0]))[0
|
||||||
#######################
|
#######################
|
||||||
liste_serveurs = []
|
liste_serveurs = []
|
||||||
for IP in serveurs_ips:
|
for IP in serveurs_ips:
|
||||||
hostname = socket.gethostbyaddr("%s" % IP)[0]
|
hostname = socket.gethostbyaddr(IP)[0]
|
||||||
requete = """SELECT sum(upload), sum(download)
|
requete = """SELECT sum(upload), sum(download)
|
||||||
FROM upload
|
FROM upload
|
||||||
WHERE
|
WHERE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue