Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:13:21 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:13:21 +0300
commitf734c821d6e62eca5a206b6048f3cd7d65f3e665 (patch)
treed1904c2b8566f9b9e33889ff9af8da5c53564859 /web/service/server.go
parent8dc23f97b647b182df3faecff975498fee345e2c (diff)
online users backend #1286
Diffstat (limited to 'web/service/server.go')
-rw-r--r--web/service/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/server.go b/web/service/server.go
index d88fa098..629d9253 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -230,7 +230,7 @@ func (s *ServerService) GetStatus(lastStatus *Status) *Status {
status.AppStats.Mem = rtm.Sys
status.AppStats.Threads = uint32(runtime.NumGoroutine())
- if p.IsRunning() {
+ if p != nil && p.IsRunning() {
status.AppStats.Uptime = p.GetUptime()
} else {
status.AppStats.Uptime = 0