更新
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user