changeset 12:a6297e8a42a3

Fix running with -g
author Daniel O'Connor <darius@dons.net.au>
date Thu, 08 Jan 2015 11:24:09 +1030
parents 0e1399e48678
children bf46efd061d7
files adslstats.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)