Skip to content

Commit

Permalink
tools/argdist.py: exit(0) when count or duration expires
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed May 8, 2024
1 parent c237605 commit 1d8e1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/argdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ def _main_loop(self):
count_so_far += 1
if self.args.count is not None and \
count_so_far >= self.args.count:
exit()
exit(0)
if self.args.duration and \
seconds >= self.args.duration:
exit()
exit(0)

def run(self):
try:
Expand Down

0 comments on commit 1d8e1ee

Please sign in to comment.