Skip to content

Commit

Permalink
Merge pull request #2370 from midichef/status_latency
Browse files Browse the repository at this point in the history
[status-] decrease latency of status() when other threads run
  • Loading branch information
anjakefala committed May 23, 2024
2 parents d77d021 + 743c152 commit a6a1be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/features/status_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@VisiData.api
def getStatusSource(vd):
stack = inspect.stack()
stack = inspect.stack(context=0) #2370
for i, sf in enumerate(stack):
if sf.function in 'status aside'.split():
if stack[i+1].function in 'error fail warning debug'.split():
Expand Down

0 comments on commit a6a1be8

Please sign in to comment.