From: Jens Axboe Date: Mon, 20 Feb 2006 10:06:18 +0000 (+0100) Subject: [PATCH] blktrace: net server stat fixes X-Git-Tag: blktrace-0.99.1~26 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dbfbd6db54bafab784e9019169671d4361c27e2e;p=blktrace.git [PATCH] blktrace: net server stat fixes --- 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; }