From: Erik Andresen Date: Sun, 25 Dec 2016 10:42:18 +0000 (+0100) Subject: humidity/check_ventilate(): return relation, not difference X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=0078af79655849d250dc1a7fe3d93ba7b9c8d767;p=pyshared.git humidity/check_ventilate(): return relation, not difference --- diff --git a/humidity.py b/humidity.py index 9e4d439..ec3412a 100755 --- a/humidity.py +++ b/humidity.py @@ -58,7 +58,7 @@ def check_ventilate(temp_indoor, humdity_rel_indoor): humdity_abs_outdoor = calc_humidity_abs(temp_outdoor, humdity_rel_outdoor) print "Wassergehalt Innen: %.2f, Außen: %.2f" % (humdity_abs_indoor, humdity_abs_outdoor) - return humdity_abs_indoor - humdity_abs_outdoor + return humdity_abs_indoor/humdity_abs_outdoor if __name__ == "__main__":