]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix quartile time estimate, it was too low, (thanks Jan Komissar).
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 28 Nov 2011 14:22:29 +0000 (14:22 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 28 Nov 2011 14:22:29 +0000 (14:22 +0000)
git-svn-id: file:///svn/unbound/trunk@2557 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/timehist.c

index 254261fa50496b689ef25b0637bee4ef32645edb..9b7bbcc5bb47aa546f7a7bbf9f8a054da1f3a32a 100644 (file)
@@ -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.
index 38e642778cd2a9f3612648c5022624a465374ba1..98d8db1c8f0d4eca8134473fe50fbe046bfc1269 100644 (file)
@@ -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