diff adslstats.py @ 12:a6297e8a42a3

Fix running with -g
author Daniel O'Connor <darius@dons.net.au>
date Thu, 08 Jan 2015 11:24:09 +1030
parents 88cf0a88c826
children bf46efd061d7
line wrap: on
line diff
--- a/adslstats.py	Thu Jan 08 11:22:21 2015 +1030
+++ b/adslstats.py	Thu Jan 08 11:24:09 2015 +1030
@@ -310,7 +310,7 @@
             if options.verbose:
                 print "Modem is offline"
 
-    if stats != None:
+    if (options.update or options.munin) and stats != None:
         if options.update:
             try:
                 os.stat(rrdname)