Two tweaks to exit-port statistics.
commit8f1a973669284e5662bd6f23bc96ecfafa57c554
authorKarsten Loesing <karsten.loesing@gmx.net>
Mon, 13 Jul 2009 20:43:06 +0000 (13 22:43 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Mon, 13 Jul 2009 20:43:06 +0000 (13 22:43 +0200)
treef8145dc47dee99bc85814d3bac2056a8c134e51a
parent707a44a7b0e12f9aef541dd69b356e2f123bcda8
Two tweaks to exit-port statistics.

Add two functions for round_to_next_multiple_of() for uint32_t and
uint64_t.

Avoid division in every step of the loop over all ports.
src/common/util.c
src/common/util.h
src/or/or.h
src/or/rephist.c