From 514a9fe8450efe2091d5671c3f7c67a8745b232e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Jun 2011 16:37:31 +0200 Subject: [PATCH] AMQP plugin: Fix printing of interval_g. --- src/amqp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2