# HG changeset patch # User Daniel O'Connor # Date 1420678449 -37800 # Node ID a6297e8a42a36ceba6b8f8e1721dc92776ad50a4 # Parent 0e1399e48678698d00e9987f0cbf7f410e67f521 Fix running with -g diff -r 0e1399e48678 -r a6297e8a42a3 adslstats.py --- 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)