This commit is contained in:
yasirarism 2023-06-16 14:36:16 +00:00 committed by GitHub
parent 8ef006a71d
commit ac91ff9093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import json
import traceback import traceback
import cloudscraper import cloudscraper
import aiohttp import aiohttp
import logging
from datetime import datetime from datetime import datetime
from shutil import disk_usage from shutil import disk_usage
from time import time from time import time
@ -141,7 +142,7 @@ async def server_stats(self: Client, ctx: Message) -> "Message":
download = get_readable_file_size(net_io_counters().bytes_recv) download = get_readable_file_size(net_io_counters().bytes_recv)
cpu_percentage = cpu_percent() cpu_percentage = cpu_percent()
LOGGER.info(cpu_percentage) logging.info(cpu_percentage)
cpu_counts = cpu_count() cpu_counts = cpu_count()
ram_percentage = virtual_memory().percent ram_percentage = virtual_memory().percent