Mercurial > templog
diff web/templog.py @ 367:3db118498b97
sort out voltage logging
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 26 Jun 2012 08:08:48 +0800 |
parents | 8fea6144951b |
children | a8ff20f15734 |
line wrap: on
line diff
--- a/web/templog.py Mon Jun 25 01:23:34 2012 +0800 +++ b/web/templog.py Tue Jun 26 08:08:48 2012 +0800 @@ -40,7 +40,7 @@ start_hour = datetime.datetime.now() - datetime.timedelta(days=1) start = time.mktime(start_hour.timetuple()) - length = int(request.query.get('length', 36)) * 3600 + length = int(request.query.get('length', 26)) * 3600 response.set_header('Content-Type', 'image/png') return log.graph_png(start, length) @@ -61,8 +61,9 @@ return 'done' def main(): - bottle.debug(True) - bottle.run(server='cgi') + #bottle.debug(True) + #bottle.run(reloader=True) + bottle.run(server='cgi', reloader=True) #bottle.run(port=9999, reloader=True) if __name__ == '__main__':