Skip to content

Commit

Permalink
Progress bar: Store the maximum power used rather than the random sam…
Browse files Browse the repository at this point in the history
…ple.

Signed-off-by: bghira <[email protected]>
  • Loading branch information
bghira committed Jul 8, 2023
1 parent 03aae82 commit 8fa1b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_tron_client/classes/tqdm_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def write(self, s: str):

if progress >= 50 and progress <= 60:
# Record GPU power use around 60% progress.
gpu_power_consumption = (
gpu_power_consumption = float(
self.hardware_info.get_gpu_power_consumption()
)
if gpu_power_consumption > self.gpu_power_consumption:
Expand Down

0 comments on commit 8fa1b17

Please sign in to comment.