Browse Source

Merge commit 'sebastian/ewma2' into ewma

Conflicts:
	src/or/relay.c
Nick Mathewson 16 years ago
parent
commit
296381eda0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/relay.c

+ 1 - 1
src/or/relay.c

@@ -1828,7 +1828,7 @@ static unsigned
 cell_ewma_tick_from_timeval(const struct timeval *now,
 cell_ewma_tick_from_timeval(const struct timeval *now,
                             double *remainder_out)
                             double *remainder_out)
 {
 {
-  unsigned res = now->tv_sec / EWMA_TICK_LEN;
+  unsigned res = (unsigned) (now->tv_sec / EWMA_TICK_LEN);
   /* rem */
   /* rem */
   double rem = (now->tv_sec % EWMA_TICK_LEN) +
   double rem = (now->tv_sec % EWMA_TICK_LEN) +
     ((double)(now->tv_usec)) / 1.0e6;
     ((double)(now->tv_usec)) / 1.0e6;