Update hikka_info.py

pull/40/head
Who? 2024-12-21 13:57:25 +07:00 committed by GitHub
parent f81977045b
commit 3e3f5a3788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ class HikkaInfoMod(loader.Module):
branch=version.branch,
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
start = time.perf_counter_ns()
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
ping=round((time.perf_counter_ns() - time.perf_counter_ns()) / 10**6, 3),
)
if self.config["custom_message"]
else (