From be925321a07fb9dca627dd3c1a341aeab874d2e8 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 Sep 2005 16:54:56 +0200 Subject: [PATCH] [PATCH] blkparse: sequence fixes Only set last sequence _after_ a potential break of the loop. And remember to set last_allowed_time for stdin reads as well. --- blkparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blkparse.c b/blkparse.c index fe3128c..0e9e695 100644 --- a/blkparse.c +++ b/blkparse.c @@ -1481,11 +1481,11 @@ static void show_entries_rb(void) } } - pdi->last_sequence = bit->sequence; - if (bit->time >= stopwatch_end || bit->time > last_allowed_time) break; + pdi->last_sequence = bit->sequence; + if (bit->time >= stopwatch_start) { check_time(pdi, bit); @@ -1672,6 +1672,7 @@ static int do_stdin(void) { int fd; + last_allowed_time = -1ULL; fd = dup(STDIN_FILENO); do { int events; -- 2.25.1