# HG changeset patch # User Daniel O'Connor # Date 1391767573 -37800 # Node ID 072489c80c516c0d3df5793429e91f46d4f49199 # Parent f50214bca1ae23e270167ac505f36cd4ca43e0f7 Change from PNG to SVG diff -r f50214bca1ae -r 072489c80c51 adslstats.py --- a/adslstats.py Fri Feb 07 20:35:59 2014 +1030 +++ b/adslstats.py Fri Feb 07 20:36:13 2014 +1030 @@ -169,7 +169,7 @@ def gengraph(): linkargs = ( - '-a', 'PNG', + '-a', 'SVG', '-X', '0', '--vertical-label', 'kbit/sec', '--slope-mode', @@ -194,7 +194,7 @@ 'LINE1:downstream#ff0000:Downstream') signalargs = ( - '-a', 'PNG', + '-a', 'SVG', '--vertical-label', 'dB', '--slope-mode', @@ -247,30 +247,30 @@ 'AREA:attendowndif#aaaaaa::STACK', 'LINE1:attendown#000000:Attenuation - Down') - rrdtool.graph("%s-hour-link.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-hour-link.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 7d', '--end', 'now', *linkargs) - rrdtool.graph("%s-daily-link.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-daily-link.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 365d', '--end', 'now', *linkargs) - rrdtool.graph("%s-hour-signal.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-hour-signal.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 7d', '--end', 'now', *signalargs) - rrdtool.graph("%s-daily-signal.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-daily-signal.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 365d', '--end', 'now',