Allow explicit setting of a number of files
[fio.git] / engines / syslet-rw.c
index 40298cbd24496a3811ee28950d4def7bf22df01a..fe400daa501dd4e8e31ecc1db6129ab7fb0bc921 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;