syslet engine: residual fix
authorJens Axboe <jens.axboe@oracle.com>
Mon, 12 Mar 2007 08:43:05 +0000 (09:43 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 12 Mar 2007 08:43:05 +0000 (09:43 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/syslet-rw.c

index 40298cb..fe400da 100644 (file)
@@ -46,7 +46,7 @@ static void fio_syslet_complete_atom(struct thread_data *td,
 
                io_u = atom->private;
                ret = *atom->ret_ptr;
-               if (ret > 0)
+               if (ret >= 0)
                        io_u->resid = io_u->xfer_buflen - ret;
                else if (ret < 0)
                        io_u->error = ret;