summaryrefslogtreecommitdiff
path: root/verify_blkparse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-01-19 08:45:04 +0100
committerJens Axboe <axboe@suse.de>2006-01-19 08:45:04 +0100
commit8c0221bf0fcf15bfdbdff5ed8555b6604dfc7196 (patch)
treefb4ecd221c5a657ad768f1ddc0d084ea6dd5a5b1 /verify_blkparse.c
parent5cc96acba28248e124451bd1023ba985af248599 (diff)
downloadblktrace-8c0221bf0fcf15bfdbdff5ed8555b6604dfc7196.tar.gz
blktrace-8c0221bf0fcf15bfdbdff5ed8555b6604dfc7196.tar.bz2
[PATCH] verify_blkparse: init last_seq to -1 to avoid alias on sequence 0
Diffstat (limited to 'verify_blkparse.c')
-rw-r--r--verify_blkparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/verify_blkparse.c b/verify_blkparse.c
index 2c39b6b..50a1c81 100644
--- 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)