Mercurial > templog
changeset 256:6d06795aefbb
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 08 Jun 2015 22:33:04 +0800 |
parents | 8ef52f27cf95 (current diff) ffe25107d520 (diff) |
children | d0c29436bb63 26eee8591f61 |
files | py/uploader.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/py/fridge.py Mon Jun 08 22:32:34 2015 +0800 +++ b/py/fridge.py Mon Jun 08 22:33:04 2015 +0800 @@ -35,8 +35,8 @@ if self.server.params.disabled: L("Fridge is disabled") while True: - self.do() try: + self.do() yield from self.server.sleep(config.FRIDGE_SLEEP) except Exception as e: EX("fridge failed") @@ -111,7 +111,7 @@ else: # fridge is off turn_on = False - D("fridge %(fridge)f max %(fridge_max)f wort %(wort)f wort_max %(wort_max)f" % locals()) + D("fridge %(fridge)s max %(fridge_max)s wort %(wort)s wort_max %(wort_max)s" % locals()) if not params.nowort \ and wort is not None \ and wort >= wort_max:
--- a/py/uploader.py Mon Jun 08 22:32:34 2015 +0800 +++ b/py/uploader.py Mon Jun 08 22:33:04 2015 +0800 @@ -59,8 +59,8 @@ @asyncio.coroutine def do(self): - readings = self.server.take_readings() try: + readings = self.server.take_readings() tosend = self.get_tosend(readings) nreadings = len(readings) yield from self.send(tosend)