r13323@catbus: nickm | 2007-06-08 14:45:28 -0400

Backport r10537: bugfix: we were undercounting the number of authorities that recommended any given version by 1.


svn:r10538
This commit is contained in:
Nick Mathewson 2007-06-08 18:46:18 +00:00
parent 39d52ec93a
commit f647ff501f
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Changes in version 0.1.2.15 - 2007-0?-??
- Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
- Try even harder not to dereference the first character after
an mmap(). (Bug reported by lodger)
- Count the number of authorities that recommend each version
correctly. Previously, we were under-counting by 1.
Changes in version 0.1.2.14 - 2007-05-25

View File

@ -3235,7 +3235,7 @@ compute_recommended_versions(time_t now, int client,
} else {
if (n_seen > n_versioning/2 && current)
smartlist_add(recommended, current);
n_seen = 0;
n_seen = 1;
current = cp;
}
});