stats-dist.c revision 5f08b0309190ec818d46bfe0e497468b30714a93
1516N/A/* Copyright (c) 2015-2017 Dovecot authors, see the included COPYING file */ 49N/A/* In order to have a vaguely accurate 95th percentile, you need way 49N/A more than 20 in your subsample. */ 237N/A /* cast-away const - reading requires sorting */ 237N/A/* This is independent of the stats framework, useful for any selection task */ 1685N/A /* With out of range fractions, we can give the caller what 583N/A they probably want rather than just crashing. */ unsigned int idx =
idx_float;
/* C defaults to rounding down */ /* Exact boundaries belong to the open range below them. As FP isn't exact, and ratios may be specified inexactly, include a small amount of fuzz around the exact boundary. */ /* cast-away const - reading requires sorting */