add a comment so i stop worrying

svn:r9532
This commit is contained in:
Roger Dingledine 2007-02-08 20:27:58 +00:00
parent a1a9c66ce5
commit 90b53beec5

View File

@ -1008,6 +1008,8 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, int for_exit, int statuses)
if (n_unknown) { if (n_unknown) {
int32_t avg_fast, avg_slow; int32_t avg_fast, avg_slow;
if (total_exit_bw+total_nonexit_bw) { if (total_exit_bw+total_nonexit_bw) {
/* if there's some bandwidth, there's at least one known router,
* so no worries about div by 0 here */
avg_fast = avg_slow = avg_fast = avg_slow =
(total_exit_bw+total_nonexit_bw)/(smartlist_len(sl)-n_unknown); (total_exit_bw+total_nonexit_bw)/(smartlist_len(sl)-n_unknown);
} else { } else {