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 44f9823..13588fa 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;