mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
Low pop statistics are not good.
git-svn-id: file:///svn/unbound/trunk@926 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
9be27227a1
commit
0fe0251c8d
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@ timehist_quartile(struct timehist* hist, double q)
|
|||
if(!hist || hist->num == 0)
|
||||
return 0.;
|
||||
/* look for i'th element, interpolated */
|
||||
lookfor = (double)timehist_count(hist) * q;
|
||||
lookfor = (double)timehist_count(hist);
|
||||
if(lookfor < 4)
|
||||
return 0.; /* not enough elements for a good estimate */
|
||||
lookfor *= q;
|
||||
passed = 0;
|
||||
i = 0;
|
||||
while(i+1 < hist->num &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue