Rifat Azad commited on
Commit
3ea7be7
·
1 Parent(s): f15b29c
Files changed (1) hide show
  1. logger.py +3 -3
logger.py CHANGED
@@ -21,10 +21,10 @@ async def read_root():
21
  # Measure latency to google.com
22
  async with httpx.AsyncClient() as client:
23
  try:
24
- response = await client.get("https://www.google.com")
25
  latency_ms = response.elapsed.total_seconds() * 1000
26
  except httpx.RequestError:
27
- latency_ms = "Error: Unable to connect to google.com"
28
 
29
  return {
30
  "System Uptime": {
@@ -35,5 +35,5 @@ async def read_root():
35
  },
36
  "CPU Usage": f"{cpu_percent}%",
37
  "Memory Usage": f"{memory_percent}%",
38
- "Latency to Google (ms)": latency_ms
39
  }
 
21
  # Measure latency to google.com
22
  async with httpx.AsyncClient() as client:
23
  try:
24
+ response = await client.get("https://www.discord.com")
25
  latency_ms = response.elapsed.total_seconds() * 1000
26
  except httpx.RequestError:
27
+ latency_ms = "Error: Unable to connect to discord.com"
28
 
29
  return {
30
  "System Uptime": {
 
35
  },
36
  "CPU Usage": f"{cpu_percent}%",
37
  "Memory Usage": f"{memory_percent}%",
38
+ "Latency to Discord (ms)": latency_ms
39
  }