fix a 32bit/64bit sprintf mixup that weasel pointed out

svn:r3823
This commit is contained in:
Roger Dingledine 2005-03-22 23:27:29 +00:00
parent ad5f5ddf7e
commit 21b1adefbb

View File

@ -697,9 +697,9 @@ static void run_connection_housekeeping(int i, time_t now) {
} else if ( } else if (
now >= conn->timestamp_lastempty + options->KeepalivePeriod*10 && now >= conn->timestamp_lastempty + options->KeepalivePeriod*10 &&
now >= conn->timestamp_lastwritten + options->KeepalivePeriod*10) { now >= conn->timestamp_lastwritten + options->KeepalivePeriod*10) {
log_fn(LOG_NOTICE,"Expiring stuck connection to %d (%s:%d). (%ul bytes to flush; %d seconds since last write)", log_fn(LOG_NOTICE,"Expiring stuck connection to %d (%s:%d). (%d bytes to flush; %d seconds since last write)",
i, conn->address, conn->port, i, conn->address, conn->port,
(unsigned long)buf_datalen(conn->outbuf), (int)buf_datalen(conn->outbuf),
(int)(now-conn->timestamp_lastwritten)); (int)(now-conn->timestamp_lastwritten));
connection_mark_for_close(conn); connection_mark_for_close(conn);
} else { } else {