git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix weight calculation for spamd_address. Bug 2694
[exim.git]
/
src
/
src
/
spam.c
diff --git
a/src/src/spam.c
b/src/src/spam.c
index 3318bff498d2df2463dc0ca24f62ed73fe674a42..b0e24b3682095d7f1009334553570dff6ca5d09e 100644
(file)
--- a/
src/src/spam.c
+++ b/
src/src/spam.c
@@
-174,7
+174,7
@@
for (long rnd = random() % weights, i = 0; i < num_servers; i++)
{
sd = spamds[i];
if (!sd->is_failed && sd->priority == pri)
- if ((rnd -= sd->weight) <
=
0)
+ if ((rnd -= sd->weight) < 0)
return i;
}