From: Thibault Godouet Date: Fri, 15 Sep 2000 20:17:15 +0000 (+0000) Subject: printf format more precise in debug() for lavg X-Git-Tag: ver2_9_4~566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d3cc96488eb2f6a8fadd24e18668ad8776d9ed;p=thirdparty%2Ffcron.git printf format more precise in debug() for lavg --- diff --git a/database.c b/database.c index c34510f..e9c22f4 100644 --- a/database.c +++ b/database.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: database.c,v 1.27 2000-09-14 19:02:10 thib Exp $ */ + /* $Id: database.c,v 1.28 2000-09-15 20:17:15 thib Exp $ */ #include "fcron.h" @@ -744,7 +744,7 @@ check_lavg(time_t lim) if ( (i = getloadavg(l_avg, 3)) != 3 ) debug("got only %d lavg values", i); - debug("get_lavg: %f, %f, %f", l_avg[0], l_avg[1], l_avg[2]); + debug("get_lavg: %lf, %lf, %lf", l_avg[0], l_avg[1], l_avg[2]); /* the 3 values stored in the fcron lines are the real value *= 10 */ l_avg[0] *= 10; l_avg[1] *= 10; @@ -767,7 +767,7 @@ check_lavg(time_t lim) || l_avg[2] < lavg_array[i].l_line->cl_lavg[2] ) ) ) { - debug("lavg '%s' %s %2f:%d %2f:%d %2f:%d", + debug("lavg '%s' %s %1lf:%d %1lf:%d %1lf:%d", lavg_array[i].l_line->cl_shell, (is_lor(lavg_array[i].l_line->cl_option)) ? "or" : "and", l_avg[0], lavg_array[i].l_line->cl_lavg[0],