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:
parent
eac2f44cde
commit
35550ba641
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user