diff py/config.py @ 264:205809a8872f

integer division
author Matt Johnston <matt@ucc.asn.au>
date Sat, 13 Jun 2015 21:56:51 +0800
parents 26eee8591f61
children 20c89630be6c
line wrap: on
line diff
--- a/py/config.py	Wed Jun 10 00:13:26 2015 +0800
+++ b/py/config.py	Sat Jun 13 21:56:51 2015 +0800
@@ -8,7 +8,7 @@
 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins
 
 # 12 hours of "offline" readings stored
-MAX_READINGS = 12*60*60 / SENSOR_SLEEP
+MAX_READINGS = 12*60*60 // SENSOR_SLEEP
 
 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf')