Code

AMQP plugin: Fix printing of interval_g.
authorFlorian Forster <octo@collectd.org>
Fri, 17 Jun 2011 14:37:31 +0000 (16:37 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 17 Jun 2011 14:37:31 +0000 (16:37 +0200)
src/amqp.c

index 44f982302040effcb504021c40712207ef28302d..13588fa1819921fd02cb0e2bbb0020398caebd0b 100644 (file)
@@ -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;