Mercurial > ~darius > hgwebdir.cgi > adslstats
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:0e1399e48678 | 12:a6297e8a42a3 |
---|---|
308 stats = getdata() | 308 stats = getdata() |
309 if stats == None: | 309 if stats == None: |
310 if options.verbose: | 310 if options.verbose: |
311 print "Modem is offline" | 311 print "Modem is offline" |
312 | 312 |
313 if stats != None: | 313 if (options.update or options.munin) and stats != None: |
314 if options.update: | 314 if options.update: |
315 try: | 315 try: |
316 os.stat(rrdname) | 316 os.stat(rrdname) |
317 except OSError, e: | 317 except OSError, e: |
318 if e.errno == 2: | 318 if e.errno == 2: |