From: Andrew Tridgell Date: Thu, 2 Jul 1998 02:48:09 +0000 (+0000) Subject: fix the problem of --timeout waiting for twice the specified time. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/86ffe37f11f3d3d2f855f9d4384a22ac72d5b6fb fix the problem of --timeout waiting for twice the specified time. --- diff --git a/io.c b/io.c index d7140d26..469eef3e 100644 --- a/io.c +++ b/io.c @@ -54,8 +54,8 @@ static void check_timeout(void) t = time(NULL); - if (last_io && io_timeout && (t-last_io)>io_timeout) { - rprintf(FERROR,"read timeout after %d second - exiting\n", + if (last_io && io_timeout && (t-last_io) >= io_timeout) { + rprintf(FERROR,"io timeout after %d second - exiting\n", (int)(t-last_io)); exit_cleanup(1); }