git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0f5fa4
)
dbwrap: Print wait times with full precision
author
Volker Lendecke
<vl@samba.org>
Thu, 6 Mar 2014 06:27:36 +0000
(07:27 +0100)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap_ctdb.c
b/source3/lib/dbwrap/dbwrap_ctdb.c
index ca33c8f65e1832a00e25fc84d0ce5005f4933c84..0b30d9fea3f1d34183af2fdb1e1e51fd48638709 100644
(file)
--- a/
source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/
source3/lib/dbwrap/dbwrap_ctdb.c
@@
-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 * 100
0,
-
(int) ctdb_time * 100
0));
+
chainlock_time * 1000.
0,
+
ctdb_time * 1000.
0));
}
GetTimeOfDay(&crec->lock_time);