[PATCH] blktrace: final (hopefully) data read stat updates
authorJens Axboe <axboe@suse.de>
Mon, 20 Feb 2006 10:12:11 +0000 (11:12 +0100)
committerJens Axboe <axboe@suse.de>
Mon, 20 Feb 2006 10:12:11 +0000 (11:12 +0100)
blktrace.c

index ac516a243cfb540178b97977f6af9cf2bdef625c..c1909a949c380328dcba22a0c3f37e7fea3ec5d4 100644 (file)
@@ -767,7 +767,6 @@ static int flush_subbuf_net(struct thread_information *tip,
        if (write_data_net(net_out_fd, ts->buf, ts->len))
                return 1;
 
-       tip->data_read += ts->len;
        free(ts->buf);
        free(ts);
        return 0;
@@ -799,7 +798,7 @@ static int flush_subbuf_sendfile(struct thread_information *tip,
                return 1;
        }
 
-       tip->data_read += ts->len;
+       tip->data_read += len;
        free(ts);
        return 0;
 }