thermferm/simulator.c

changeset 571
6f8eda55ec2c
parent 553
4091d4fe217f
child 595
d7342a8e7f4d
--- a/thermferm/simulator.c	Mon Jan 14 22:46:27 2019 +0100
+++ b/thermferm/simulator.c	Sat Jan 19 11:38:09 2019 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2008-2018
+ * Copyright (C) 2014-2019
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -48,8 +48,6 @@
     double		air_change, vhc_air = 0.00121;
 
     syslog(LOG_NOTICE, "Thread my_simulator_loop started");
-    if (debug)
-	fprintf(stdout, "Thread my_simulator_loop started\n");
 
     for (simulator = Config.simulators; simulator; simulator = simulator->next) {
 	/*
@@ -128,9 +126,9 @@
 		simulator->air_temperature += ((simulator->beer_temperature - simulator->air_temperature) / 2500.0);
 		simulator->chiller_temperature = simulator->cooler_temp;	// Libk these
 
-		if ((seconds % 15) == 0)
-		    syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature,
-				simulator->s_heat_temp, simulator->s_cool_temp);
+//		if ((seconds % 15) == 0)
+//		    syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature,
+//				simulator->s_heat_temp, simulator->s_cool_temp);
 
 //		if (debug)
 //		    fprintf(stdout, "sqm_room_air=%f air=%f air_heat_transfer=%f air_change=%f beer=%f\n",
@@ -142,8 +140,6 @@
     }
 
     syslog(LOG_NOTICE, "Thread my_simulator_loop stopped");
-    if (debug)
-	fprintf(stdout, "Thread my_simulator_loop stopped\n");
     return 0;
 }
 

mercurial