From dbfbd6db54bafab784e9019169671d4361c27e2e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 20 Feb 2006 11:06:18 +0100 Subject: [PATCH] [PATCH] blktrace: net server stat fixes --- blktrace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blktrace.c b/blktrace.c index c05e2f1..ac516a2 100644 --- a/blktrace.c +++ b/blktrace.c @@ -540,6 +540,7 @@ static int mmap_subbuf(struct thread_information *tip, unsigned int maxlen) ret = read_data(tip, tip->fs_buf + tip->fs_off, maxlen); if (ret >= 0) { + tip->data_read += ret; tip->fs_size += ret; tip->fs_off += ret; return 0; @@ -562,6 +563,7 @@ static int get_subbuf(struct thread_information *tip, unsigned int maxlen) ret = read_data(tip, ts->buf, ts->max_len); if (ret > 0) { ts->len = ret; + tip->data_read += ret; return subbuf_fifo_queue(tip, ts); } @@ -1447,6 +1449,7 @@ repeat: close(net_in_fd); net_in_fd = -1; + stat_shown = 0; goto repeat; } -- 2.25.1