Print filenames in the stats screen

This commit is contained in:
Andrea Mazzoleni 2017-11-19 19:33:47 +01:00
parent 176851bbda
commit b9740e06f4
9 changed files with 43 additions and 10 deletions

View file

@ -490,9 +490,9 @@ static void io_refresh_thread(struct snapraid_io* io)
cached = end - begin;
if (worker->parity_handle)
io->state->parity[worker->parity_handle->level].cached = cached;
io->state->parity[worker->parity_handle->level].cached_blocks = cached;
else
worker->handle->disk->cached = cached;
worker->handle->disk->cached_blocks = cached;
}
/* for all writers, count the number of written blocks */
@ -509,7 +509,7 @@ static void io_refresh_thread(struct snapraid_io* io)
end += io->io_max;
cached = end - begin;
io->state->parity[worker->parity_handle->level].cached = cached;
io->state->parity[worker->parity_handle->level].cached_blocks = cached;
}
thread_mutex_unlock(&io->io_mutex);