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