if: better statistics

This commit is contained in:
Thomas Schoebel-Theuer 2020-05-16 19:29:04 +02:00
parent 3367e483a0
commit 6f21da8cec
1 changed files with 2 additions and 0 deletions

View File

@ -1300,6 +1300,7 @@ char *if_statistics(struct if_brick *brick, int verbose)
if (!res)
return NULL;
snprintf(res, 512,
"disk = %p "
"total reada = %d "
"reads = %d "
"mref_reads = %d (%d%%) "
@ -1313,6 +1314,7 @@ char *if_statistics(struct if_brick *brick, int verbose)
"plugged = %d "
"flying reads = %d "
"flying writes = %d\n",
input->disk,
tmp0,
tmp1,
tmp2,