Skip to content

Commit

Permalink
stall-analyser: remove unused variable
Browse files Browse the repository at this point in the history
`count` is never used after being assigned, so drop it.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored and avikivity committed Jun 6, 2024
1 parent afca834 commit 8f9c857
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/stall-analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ def print_command_line_options(args):

def main():
args = get_command_line_parser().parse_args()
count = 0
comment = re.compile(r'^\s*#')
pattern = re.compile(r"Reactor stalled for (?P<stall>\d+) ms on shard (?P<shard>\d+).*Backtrace:")
address_threshold = int(args.address_threshold, 0)
Expand All @@ -350,7 +349,6 @@ def main():
m = pattern.search(s)
if not m:
continue
count += 1
# extract the time in ms
trace = s[m.span()[1]:].split()
t = int(m.group("stall"))
Expand Down

0 comments on commit 8f9c857

Please sign in to comment.