--- utadem.c.SUN Sat Sep 4 00:56:54 2004 +++ utadem.c Sat Sep 4 00:49:33 2004 @@ -721,7 +721,7 @@ //LOCK: sess->io_lock io = &sess->ios[idx]; - info.fragments = (io->daemon + UTA_DEF_NBLKS-io->user) % UTA_DEF_NBLKS; + info.fragments = UTA_DEF_NBLKS - ((io->daemon + UTA_DEF_NBLKS-io->user) % UTA_DEF_NBLKS); info.fragstotal = UTA_DEF_NBLKS; info.fragsize = UTA_DEF_BLKSIZE; info.bytes = UTA_DEF_BLKSIZE - io->bufs[io->user]->offset;