diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:14:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:14:21 +0000 |
commit | 814ecec2435a86cbc7e6d09b28b3aa9d2e060e56 (patch) | |
tree | a9c281c6c48529b684dce9fd7300369914a67623 /src/fragmentation | |
parent | 9ba9ea13dc924afbf2dd03c3fd15e9e9d833d91a (diff) | |
download | gnunet-814ecec2435a86cbc7e6d09b28b3aa9d2e060e56.tar.gz gnunet-814ecec2435a86cbc7e6d09b28b3aa9d2e060e56.zip |
add 1 std dev -- seems to help:
Diffstat (limited to 'src/fragmentation')
-rw-r--r-- | src/fragmentation/defragmentation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fragmentation/defragmentation.c b/src/fragmentation/defragmentation.c index 34db0db3a..29d2c3c42 100644 --- a/src/fragmentation/defragmentation.c +++ b/src/fragmentation/defragmentation.c | |||
@@ -362,7 +362,10 @@ estimate_latency (struct MessageContext *mc) | |||
362 | y[i] = (double) (first[i].time.abs_value - first[0].time.abs_value); | 362 | y[i] = (double) (first[i].time.abs_value - first[0].time.abs_value); |
363 | } | 363 | } |
364 | gsl_fit_mul (x, 1, y, 1, total, &c1, &cov11, &sumsq); | 364 | gsl_fit_mul (x, 1, y, 1, total, &c1, &cov11, &sumsq); |
365 | c1 += sqrt (sumsq); /* add 1 std dev */ | ||
365 | ret.rel_value = (uint64_t) c1; | 366 | ret.rel_value = (uint64_t) c1; |
367 | if (ret.rel_value == 0) | ||
368 | ret = GNUNET_TIME_UNIT_MILLISECONDS; /* always at least 1 */ | ||
366 | return ret; | 369 | return ret; |
367 | }; | 370 | }; |
368 | 371 | ||