Skip to content

Commit

Permalink
[status-] show thread time only if disp_expert < 0 or --profile
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Sep 10, 2024
1 parent 85ddd76 commit d603a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def __exit__(self, exc_type, exc_val, tb):
vd.threads.remove(self.thread)
else:
if self.thread.sheet:
if vd.options.disp_expert or vd.options.profile:
if vd.options.disp_expert < 0 or vd.options.profile:
vd.status(f'[:bold]{self.thread.sheet.name[:32]}.{self.thread.name}[/] finished in {elapsed_s(self.thread):.1f}s')
if vd.options.profile:
self.thread.profile.dump_stats(f'{self.thread.name}.pyprof')
Expand Down

0 comments on commit d603a74

Please sign in to comment.