git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac2f44
)
Adapt tally_approx_median to Samba coding conventions
author
Volker Lendecke
<vl@samba.org>
Wed, 10 Aug 2011 17:52:40 +0000
(19:52 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 10 Aug 2011 17:56:12 +0000
(19:56 +0200)
lib/ccan/tally/tally.c
patch
|
blob
|
history
diff --git
a/lib/ccan/tally/tally.c
b/lib/ccan/tally/tally.c
index 936b5142561a9ec172fd86a96ddf88a529472842..20e99dcb870dac2d56c539e6873cc1618d84d22f 100644
(file)
--- 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);
}