Skip to content

Commit

Permalink
Progress bar: ETA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanov-R committed Aug 16, 2024
1 parent 2563303 commit 95ccd13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/bypass.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def send_payload(json_path):

# payload processing average time and ETA calculation
ppat = round(mean(pbes), 2)
self.progress_bar_eta = int((self.progress_bar_sz - self.progress_bar_processed) * ppat / self.threads / 60)
self.progress_bar_eta = round((self.progress_bar_sz - self.progress_bar_processed) * ppat / self.threads / 60)

# other requests
else:
Expand All @@ -518,7 +518,7 @@ def send_payload(json_path):

# payload processing average time and ETA calculation
ppat = round(mean(pbes), 2)
self.progress_bar_eta = int((self.progress_bar_sz - self.progress_bar_processed) * ppat / self.threads / 60)
self.progress_bar_eta = round((self.progress_bar_sz - self.progress_bar_processed) * ppat / self.threads / 60)

# update the progress
progress_bar(self.progress_bar_eta, self.progress_bar_processed, self.progress_bar_sz)
Expand Down

0 comments on commit 95ccd13

Please sign in to comment.