From 01f3e90871b45d848dfaae55dbf246a2cb7a9a0a Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 28 Nov 2011 14:22:29 +0000 Subject: [PATCH] - Fix quartile time estimate, it was too low, (thanks Jan Komissar). git-svn-id: file:///svn/unbound/trunk@2557 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ util/timehist.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 254261fa5..9b7bbcc5b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +28 November 2011: Wouter + - Fix quartile time estimate, it was too low, (thanks Jan Komissar). + 11 November 2011: Wouter - Makefile compat with SunOS make, BSD make and GNU make. - iana ports updated. diff --git a/util/timehist.c b/util/timehist.c index 38e642778..98d8db1c8 100644 --- a/util/timehist.c +++ b/util/timehist.c @@ -220,7 +220,7 @@ timehist_quartile(struct timehist* hist, double q) (double)hist->buckets[i].upper.tv_usec/1000000.; #endif res = (lookfor - passed)*(up-low)/((double)hist->buckets[i].count); - return res; + return low+res; } void -- 2.47.2