diff options
author | Volker Lendecke <vl@samba.org> | 2011-08-10 19:52:40 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-08-10 19:56:12 +0200 |
commit | 35550ba641d251a2dc3762b08eda92d0f7ce6bed (patch) | |
tree | 19a90971eaeb6a66953be1245163ed76295a93c0 /lib/ccan | |
parent | eac2f44cde39d16b827b7e2d360f7a7fb1d940e5 (diff) | |
download | samba-35550ba641d251a2dc3762b08eda92d0f7ce6bed.tar.gz samba-35550ba641d251a2dc3762b08eda92d0f7ce6bed.tar.bz2 samba-35550ba641d251a2dc3762b08eda92d0f7ce6bed.zip |
Adapt tally_approx_median to Samba coding conventions
Diffstat (limited to 'lib/ccan')
-rw-r--r-- | lib/ccan/tally/tally.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index 936b514256..20e99dcb87 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/ccan/tally/tally.c @@ -386,8 +386,9 @@ ssize_t tally_approx_median(const struct tally *tally, size_t *err) for (i = 0; i < tally->buckets; i++) { total += tally->counts[i]; - if (total * 2 >= count) + if (total * 2 >= count) { break; + } } return bucket_range(tally, i, err); } |