]> defiant.homedns.org Git - pyshared.git/commitdiff
humidity/check_ventilate(): return relation, not difference
authorErik Andresen <erik@vontaene.de>
Sun, 25 Dec 2016 10:42:18 +0000 (11:42 +0100)
committerErik Andresen <erik@vontaene.de>
Sun, 25 Dec 2016 10:42:18 +0000 (11:42 +0100)
humidity.py

index 9e4d43958a6a0e1d0b5e1b60b2023439f0123d46..ec3412a67b9691eba0fcbd2231a653b2a228b6e6 100755 (executable)
@@ -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__":