diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 13:18:07 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 13:18:07 -0500 |
commit | 75b01be87e3f8acb8ea7f004319de91c8eab4404 (patch) | |
tree | 312c39df2c04e37f8a825191226acfecece4eee9 /scripts/logextract.py | |
parent | a6daa554841217142e3b04080e49b2988055398e (diff) | |
download | kutter-75b01be87e3f8acb8ea7f004319de91c8eab4404.tar.gz kutter-75b01be87e3f8acb8ea7f004319de91c8eab4404.tar.xz kutter-75b01be87e3f8acb8ea7f004319de91c8eab4404.zip |
logextract: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/logextract.py')
-rwxr-xr-x | scripts/logextract.py | 6 |
1 files 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 |