projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
663962f
)
[PATCH] blktrace: net server stat fixes
author
Jens Axboe
<axboe@suse.de>
Mon, 20 Feb 2006 10:06:18 +0000
(11:06 +0100)
committer
Jens Axboe
<axboe@suse.de>
Mon, 20 Feb 2006 10:06:18 +0000
(11:06 +0100)
blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/blktrace.c
b/blktrace.c
index c05e2f178bc4ab7707dbe42731571fdb7f11b6b8..ac516a243cfb540178b97977f6af9cf2bdef625c 100644
(file)
--- 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;
}