dbwrap: Print wait times with full precision
authorVolker Lendecke <vl@samba.org>
Thu, 6 Mar 2014 06:27:36 +0000 (07:27 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 27 Jun 2014 04:49:10 +0000 (06:49 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/lib/dbwrap/dbwrap_ctdb.c

index ca33c8f65e1832a00e25fc84d0ce5005f4933c84..0b30d9fea3f1d34183af2fdb1e1e51fd48638709 100644 (file)
@@ -1168,15 +1168,15 @@ again:
 
                DEBUG(0, ("db_ctdb_fetch_locked for %s key %s, chain %d "
                          "needed %d attempts, %d milliseconds, "
-                         "chainlock: %d ms, CTDB %d ms\n",
+                         "chainlock: %f ms, CTDB %f ms\n",
                          tdb_name(ctx->wtdb->tdb),
                          hex_encode_talloc(talloc_tos(),
                                            (unsigned char *)key.dptr,
                                            key.dsize),
                          chain,
                          migrate_attempts, duration_msecs,
-                         (int) chainlock_time * 1000,
-                         (int) ctdb_time * 1000));
+                         chainlock_time * 1000.0,
+                         ctdb_time * 1000.0));
        }
 
        GetTimeOfDay(&crec->lock_time);