diff adslstats.py @ 31:39bf6dec0753

Add 5 year graphs
author Daniel O'Connor <darius@dons.net.au>
date Sat, 14 Nov 2020 14:10:50 +1030
parents 08cddcdb0db3
children 1af6865189ce
line wrap: on
line diff
--- a/adslstats.py	Fri Sep 27 14:45:09 2019 +0930
+++ b/adslstats.py	Sat Nov 14 14:10:50 2020 +1030
@@ -365,6 +365,13 @@
                   '--end', 'now',
                   *linkargs)
 
+    rrdtool.graph("%s-daily-5y-link.svg" % (graphbasename),
+                  '--width', '768',
+                  '--height', '256',
+                  '--start', 'end - 1825d',
+                  '--end', 'now',
+                  *linkargs)
+
     rrdtool.graph("%s-daily-link.svg" % (graphbasename),
                   '--width', '768',
                   '--height', '256',
@@ -387,6 +394,13 @@
                   '--end', 'now',
                   *signalargs)
 
+    rrdtool.graph("%s-daily-5y-signal.svg" % (graphbasename),
+                  '--width', '768',
+                  '--height', '256',
+                  '--start', 'end - 1825d',
+                  '--end', 'now',
+                  *signalargs)
+
 if __name__ == "__main__":
     names = ['Noise Margin (up)', 'Noise Margin (down)', 'Attenuation (up)', 'Attenuation (down)']
     if args.munin != None: