Skip to content

Commit

Permalink
Percent calculation fix???
Browse files Browse the repository at this point in the history
  • Loading branch information
filispeen committed Jul 27, 2024
1 parent 20e744d commit 84876ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion F_Discord_webhook/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def on_file_created(event):
epochs_to_train = args.epochs_to_train
num = filename.replace("G_", "").replace(".pth", "")
epochs_to_train -= float(num)
percent = (float(num) / float(epochs_to_train)) * 100
percent = (float(num) / float(epochs_to_train)) * 200
percent = str(round(percent))
if int(percent) >= 100:
percent = "100"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='svc_ds_webhook',
packages=find_packages(),
version='2.0.32',
version='2.0.33',
description='Discord Webhook Messanger',
license='MIT',
author='FILISPEEN',
Expand Down

0 comments on commit 84876ef

Please sign in to comment.