From: Florian Forster Date: Wed, 15 Jul 2015 08:30:25 +0000 (+0200) Subject: src/utils_latency_test.c: Assure that large latency values also work. X-Git-Tag: collectd-5.6.0~630 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c0327159ebbb952630deadc712dcc0c988456987;p=collectd.git src/utils_latency_test.c: Assure that large latency values also work. The cdtime_t representation of 99s doesn't fit into 32bit anymore, thereby assuring that cdtime_t is actually 64bit on platforms that currently don't pass the test, i.e. EPEL {5,6} on i386. Issue: #1139 --- diff --git a/src/utils_latency_test.c b/src/utils_latency_test.c index 9b954e0d..658b53c0 100644 --- a/src/utils_latency_test.c +++ b/src/utils_latency_test.c @@ -41,12 +41,13 @@ DEF_TEST(simple) double sum; double avg; } cases[] = { - /* val min max sum avg */ - {0.5, 0.5, 0.5, 0.5, 0.5}, - {0.3, 0.3, 0.5, 0.8, 0.4}, - {0.7, 0.3, 0.7, 1.5, 0.5}, - {2.5, 0.3, 2.5, 4.0, 1.0}, - { -1, 0.3, 2.5, 4.0, 1.0}, + /* val min max sum avg */ + {0.5, 0.5, 0.5, 0.5, 0.5}, + {0.3, 0.3, 0.5, 0.8, 0.4}, + {0.7, 0.3, 0.7, 1.5, 0.5}, + {2.5, 0.3, 2.5, 4.0, 1.0}, + { 99, 0.3, 99, 103, 20.6}, + { -1, 0.3, 99, 103, 20.6}, }; size_t i; latency_counter_t *l;