From 75b01be87e3f8acb8ea7f004319de91c8eab4404 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Feb 2019 13:18:07 -0500 Subject: [PATCH] logextract: Wrap code to 80 columns Signed-off-by: Kevin O'Connor --- scripts/logextract.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/logextract.py b/scripts/logextract.py index 1151e05f..5ddc43af 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -184,7 +184,8 @@ class GatherShutdown: and self.last_stat_time > self.first_stat_time + 5.): self.finalize() return False - if (line.startswith('Git version') or line.startswith('Start printer at') + if (line.startswith('Git version') + or line.startswith('Start printer at') or line == '===== Config file ====='): self.finalize() return False @@ -268,7 +269,8 @@ class GatherShutdown: for i, (ts, line_num, line) in enumerate(self.stats_stream): if ts is not None: last_ts = self.check_stats_seq(ts, line) - elif line_num >= self.shutdown_line_num and last_ts <= max_stream_ts: + elif (line_num >= self.shutdown_line_num + and last_ts <= max_stream_ts): last_ts = max_stream_ts + 0.00000001 self.stats_stream[i] = (last_ts, line_num, line) # Make sure no timestamp goes backwards