mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-31 23:36:18 +00:00
Update server.go
This commit is contained in:
parent
3e5e3f12fe
commit
60b8d68998
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ func (a *ServerController) refreshStatus() {
|
|||
func (a *ServerController) startTask() {
|
||||
webServer := global.GetWebServer()
|
||||
c := webServer.GetCron()
|
||||
c.AddFunc("@every 2s", func() {
|
||||
c.AddFunc("@every 1s", func() {
|
||||
now := time.Now()
|
||||
if now.Sub(a.lastGetStatusTime) > time.Minute*3 {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue