fix the problem of --timeout waiting for twice the specified time.

This commit is contained in:
Andrew Tridgell
1998-07-02 02:48:09 +00:00
parent b536f47e3c
commit 86ffe37f11

4
io.c
View File

@@ -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);
}