From a795e5fae97e14d77c3c3c7d0f6543e6c5f8c850 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 26 Sep 2005 15:42:05 +0200 Subject: [PATCH] [PATCH] blkparse: final stopwatch check Delayed quit when all files have been read and there are no further entries beyond that point, then it is safe to quit out early there as well. --- blkparse.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/blkparse.c b/blkparse.c index c9b3759..9355926 100644 --- a/blkparse.c +++ b/blkparse.c @@ -1444,6 +1444,15 @@ static int do_file(void) show_entries_rb(0); + /* + * we check this a little late, since we want to make + * sure that all files have had a chance to be read + * before deciding there are definitely no further + * entries before the stop time + */ + if (last_allowed_time > stopwatch_end) + break; + } while (events_added); if (rb_sort_entries) -- 2.25.1