diff web/log.py @ 363:99e7c2958a06

merge
author Matt Johnston <matt@ucc.asn.au>
date Sun, 24 Jun 2012 23:48:25 +0800
parents 8fea6144951b
children 62112fc2af21
line wrap: on
line diff
--- a/web/log.py	Sun Jun 24 23:47:56 2012 +0800
+++ b/web/log.py	Sun Jun 24 23:48:25 2012 +0800
@@ -62,12 +62,15 @@
         '-h', str(config.GRAPH_HEIGHT),
         '--slope-mode',
         '--border', '0',
+        '--y-grid', '1:1',
+        '--grid-dash', '1:0',
+        '--color', 'GRID#00000000',
+        '--color', 'MGRID#aaaaaa',
         '--color', 'BACK#ffffff',
-        '--alt-y-grid',
         '--imgformat', 'PNG'] \
         + graph_args
     if config.GRAPH_FONT:
-        args += ['--font', 'DEFAULT:0:%s' % config.GRAPH_FONT]
+        args += ['--font', 'DEFAULT:11:%s' % config.GRAPH_FONT]
     print>>sys.stderr, args
     rrdtool.graph(*args)
     return tempf.read()