1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

Adapt tally_approx_median to Samba coding conventions

This commit is contained in:
Volker Lendecke 2011-08-10 19:52:40 +02:00
parent eac2f44cde
commit 35550ba641

View File

@ -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);
}