fix the problem of --timeout waiting for twice the specified time.
authorAndrew Tridgell <tridge@samba.org>
Thu, 2 Jul 1998 02:48:09 +0000 (02:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 2 Jul 1998 02:48:09 +0000 (02:48 +0000)
io.c

diff --git a/io.c b/io.c
index d7140d2..469eef3 100644 (file)
--- 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);
        }