From ab0ce3387d8fdd05ce565707b90199d8814e1d88 Mon Sep 17 00:00:00 2001 From: glondu Date: Sat, 27 May 2006 04:38:39 +0200 Subject: [PATCH] J'ai oublie de commiter cela. darcs-hash:20060527023839-68412-a25cc7badb3958cd2696eb5617808cddd27cdc40.gz --- surveillance/statistiques.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surveillance/statistiques.py b/surveillance/statistiques.py index 8851da39..e6c58eca 100755 --- a/surveillance/statistiques.py +++ b/surveillance/statistiques.py @@ -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