# HG changeset patch # User Matt Johnston # Date 1350911357 -28800 # Node ID 7d7e7f961eaef2300bf23580f38609bf5a54afe1 # Parent bde6cd6cbdc428e341952bf4a6cce0a31adfa9ec# Parent 8841a709ae78c2eb0a25ea0f1c520b274300b6b8 merge diff -r bde6cd6cbdc4 -r 7d7e7f961eae main.c --- a/main.c Mon Oct 15 21:51:19 2012 +0800 +++ b/main.c Mon Oct 22 21:09:17 2012 +0800 @@ -84,7 +84,7 @@ static uint8_t wake_secs = 30; // decidegrees static int16_t fridge_setpoint = 180; // 18.0ºC -static int16_t fridge_difference = 3; // 0.3ºC +static uint16_t fridge_difference = 3; // 0.3ºC static uint16_t fridge_delay = 600; // seconds static uint16_t overshoot_delay = 720; // 12 mins @@ -163,7 +163,7 @@ uint8_t wake_secs; int16_t fridge_setpoint; // decidegrees - uint8_t fridge_difference; // decidegrees + uint16_t fridge_difference; // decidegrees uint16_t fridge_delay; uint16_t overshoot_delay; diff -r bde6cd6cbdc4 -r 7d7e7f961eae web/log.py --- a/web/log.py Mon Oct 15 21:51:19 2012 +0800 +++ b/web/log.py Mon Oct 22 21:09:17 2012 +0800 @@ -90,7 +90,7 @@ if unit: try: last_value = float(rrdtool.info(rrdfile)['ds[temp].last_ds']) - format_last_value = ('%f' % last_value).rstrip('0.') + unit + format_last_value = ('%f' % last_value).rstrip('0').rstrip('.') + unit except ValueError: pass width = config.LINE_WIDTH