[wifi/bornes.py] on affine la représentation logarithmique de l'uptime

darcs-hash:20100402132904-bd074-13496f864caa99a863398d53f2ac4e8fc59d3cfd.gz
This commit is contained in:
Antoine Durand-Gasselin 2010-04-02 15:29:04 +02:00
parent 03995c1cd5
commit af2c827f24

View file

@ -220,7 +220,7 @@ toutes les bornes"""
plugin = prog.split('_', 1)[0] plugin = prog.split('_', 1)[0]
if plugin == 'uptime': if plugin == 'uptime':
config = """graph_title Uptime Bornes config = """graph_title Uptime Bornes
graph_args --base 1000 --logarithmic graph_args --base 1000 --logarithmic -l 0.5 -u 500 -r
graph_vlabel uptime in days""" graph_vlabel uptime in days"""
def process(uptime): def process(uptime):
if uptime: return str(float (uptime.split()[1]) / (24 * 3600)) if uptime: return str(float (uptime.split()[1]) / (24 * 3600))