Commit e31e88bc authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt tally_approx_median to Samba coding conventions

(Imported from SAMBA commit 35550ba641d251a2dc3762b08eda92d0f7ce6bed)
parent ce3198f0
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment