Skip to content

Commit

Permalink
fix: telegram bot not sending user limit result
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMohammad20000 committed Oct 4, 2024
1 parent 4f26be2 commit 0ebbff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/system.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ipaddress
import math
import secrets
import socket
Expand All @@ -6,7 +7,6 @@

import psutil
import requests
import ipaddress

from app import scheduler

Expand Down Expand Up @@ -166,7 +166,7 @@ def get_public_ipv6():


def readable_size(size_bytes):
if size_bytes == 0:
if size_bytes <= 0:
return "0 B"
size_name = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
i = int(math.floor(math.log(size_bytes, 1024)))
Expand Down

0 comments on commit 0ebbff3

Please sign in to comment.