From 0078af79655849d250dc1a7fe3d93ba7b9c8d767 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sun, 25 Dec 2016 11:42:18 +0100 Subject: [PATCH] humidity/check_ventilate(): return relation, not difference --- humidity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__": -- 2.39.5