From 86ffe37f11f3d3d2f855f9d4384a22ac72d5b6fb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Jul 1998 02:48:09 +0000 Subject: [PATCH] fix the problem of --timeout waiting for twice the specified time. --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.34.1