Skip to content

Commit

Permalink
cli: fix showing credits
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Jul 6, 2024
1 parent 78fff37 commit bb40454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spy.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def get_userfile(u_name) -> dict:
value = []
if line.startswith('CREDITS'):
value = 0
c = (re.sub(r'^CREDITS [^0](\d+).*', r'\1', line)).strip()
c = int((re.sub(r'^CREDITS [^0](\d+).*', r'\1', line)).strip())
if isinstance(c, int) and c > 0:
value = f"{round(int(c) / 1024**2)}GB"
else:
Expand Down

0 comments on commit bb40454

Please sign in to comment.