From e7db789e82a7a2edc5c7e8230265f8ec83021f69 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Feb 2008 19:09:45 +0000 Subject: r14399@tombo: nickm | 2008-02-22 14:09:38 -0500 More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680 --- src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index 7b8448ea1d..faeca20f0a 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1190,7 +1190,7 @@ second_elapsed_callback(int fd, short event, void *args) /* the second has rolled over. check more stuff. */ bytes_written = stats_prev_global_write_bucket - global_write_bucket; bytes_read = stats_prev_global_read_bucket - global_read_bucket; - seconds_elapsed = current_second ? (now.tv_sec - current_second) : 0; + seconds_elapsed = current_second ? (int)(now.tv_sec - current_second) : 0; stats_n_bytes_read += bytes_read; stats_n_bytes_written += bytes_written; if (accounting_is_enabled(options) && seconds_elapsed >= 0) -- cgit v1.2.3-54-g00ecf