diff py/fridge.py @ 256:6d06795aefbb

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Jun 2015 22:33:04 +0800
parents ffe25107d520
children 26eee8591f61
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: