From: Florian Forster Date: Fri, 17 Jun 2011 14:37:31 +0000 (+0200) Subject: AMQP plugin: Fix printing of interval_g. X-Git-Tag: collectd-5.1.0~54 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=514a9fe8450efe2091d5671c3f7c67a8745b232e;p=collectd.git AMQP plugin: Fix printing of interval_g. --- diff --git a/src/amqp.c b/src/amqp.c index 44f98230..13588fa1 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -551,7 +551,8 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ if (status != 0) { ERROR ("amqp plugin: camqp_connect failed. " - "Will sleep for %lli seconds.", (long long int)interval_g); + "Will sleep for %.3f seconds.", + CDTIME_T_TO_DOUBLE (interval_g)) sleep (interval_g); continue; } @@ -560,7 +561,8 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ if (status < 0) { ERROR ("amqp plugin: amqp_simple_wait_frame failed. " - "Will sleep for %lli seconds.", (long long int)interval_g); + "Will sleep for %.3f seconds.", + CDTIME_T_TO_DOUBLE (interval_g)) camqp_close_connection (conf); sleep (interval_g); continue;