Better profile progress logging

Mon, 01 Sep 2014 22:06:39 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 01 Sep 2014 22:06:39 +0200
changeset 275
a86c702c2e4f
parent 274
111b0e9663dc
child 276
a19cc3770f09

Better profile progress logging

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Mon Sep 01 15:43:13 2014 +0200
+++ b/thermferm/thermferm.c	Mon Sep 01 22:06:39 2014 +0200
@@ -1170,8 +1170,8 @@
 
 						if (valid_step == TRUE) {
 						    if (((minutes == 15) || (minutes == 45)) && (seconds == 1)) {
-						    	syslog(LOG_NOTICE, "Profile `%s' running %02d:%02d in step %d, target %.3f degrees", 
-									profile->name, run_hours, run_minutes % 60, current_step, unit->prof_target);
+						    	syslog(LOG_NOTICE, "Profile `%s' running %dd %02d:%02d in step %d, target %.3f degrees", 
+								profile->name, run_hours / 24, run_hours % 24, run_minutes % 60, current_step, unit->prof_target);
 						    }
 						} else {
 						    /*

mercurial