This commit is contained in:
Alex Yang
2025-11-27 01:04:58 +08:00
parent de1055b959
commit 6fc1283519

View File

@@ -836,7 +836,7 @@ func (s *Server) handleStatus(w http.ResponseWriter, r *http.Request) {
"avgResponseTime": stats.AvgResponseTime,
"activeIPs": len(stats.SourceIPs),
"startTime": serverStartTime,
"uptime": uptime,
"uptime": uptime.Milliseconds(), // 转换为毫秒数,方便前端处理
"cpuUsage": stats.CpuUsage,
"timestamp": time.Now(),
}