projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cc96ac
)
[PATCH] verify_blkparse: init last_seq to -1 to avoid alias on sequence 0
author
Jens Axboe
<axboe@suse.de>
Thu, 19 Jan 2006 07:45:04 +0000
(08:45 +0100)
committer
Jens Axboe
<axboe@suse.de>
Thu, 19 Jan 2006 07:45:04 +0000
(08:45 +0100)
verify_blkparse.c
patch
|
blob
|
blame
|
history
diff --git
a/verify_blkparse.c
b/verify_blkparse.c
index 2c39b6ba5cb1ed77a2110a4d143742a9a76f643e..50a1c816a8c026e594d23cca14b5473a20dddd39 100644
(file)
--- a/
verify_blkparse.c
+++ b/
verify_blkparse.c
@@
-22,8
+22,9
@@
int main(int argc, char *argv[])
return 1;
}
+ last_seq = -1;
last_time = 0;
-
last_seq =
alias = nr = 0;
+ alias = nr = 0;
total_entries = 0;
while ((p = fgets(line, sizeof(line), f)) != NULL) {
if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq, &this_time) != 5)