Bug, ve - vert

darcs-hash:20051025084830-d1718-5be87606cbc88919221b5dd9db62e90767a4f100.gz
This commit is contained in:
bernat 2005-10-25 10:48:30 +02:00
parent 9d8d17dd63
commit 86fdb945d9

View file

@ -35,7 +35,7 @@ def execute(macro, text) :
line = line.split(' ')
code += f.table_row(1)
code += f.table_cell(1,{'style':'background-color:silver'})
code += unicode(f.text('%s (%s)' % (line [0], getoutput("grep '^%s' /etc/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) ), "iso-8859-15")
code += unicode(f.text('%s (%s)' % (line [0], getoutput("grep '^%s[^a-zA-Z]' /etc/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) ), "iso-8859-15")
code += f.table_cell(0)
# nombre de non réponse au ping
if int(line[1]) > 2 :