projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8bdc6
)
src/utils_latency_test.c: Log result of DOUBLE_TO_CDTIME_T() conversion.
author
Florian Forster
<octo@collectd.org>
Wed, 15 Jul 2015 07:57:41 +0000
(09:57 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 15 Jul 2015 07:57:41 +0000
(09:57 +0200)
The test fails on some i386 architectures. Time for some printf debugging.
src/utils_latency_test.c
patch
|
blob
|
history
diff --git
a/src/utils_latency_test.c
b/src/utils_latency_test.c
index
9aecf38
..
9b954e0
100644
(file)
--- a/
src/utils_latency_test.c
+++ b/
src/utils_latency_test.c
@@
-54,6
+54,8
@@
DEF_TEST(simple)
CHECK_NOT_NULL (l = latency_counter_create ());
for (i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
+ printf ("# case %zu: DOUBLE_TO_CDTIME_T(%g) = %"PRIu64"\n",
+ i, cases[i].val, DOUBLE_TO_CDTIME_T (cases[i].val));
latency_counter_add (l, DOUBLE_TO_CDTIME_T (cases[i].val));
DBLEQ (cases[i].min, CDTIME_T_TO_DOUBLE (latency_counter_get_min (l)));