mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-23 22:34:10 +08:00
fix: 调整监控数据采集间隔 (#607)
This commit is contained in:
parent
04a1cff37e
commit
b646c5385d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
func Run() {
|
||||
nyc, _ := time.LoadLocation("Asia/Shanghai")
|
||||
Cron := cron.New(cron.WithLocation(nyc), cron.WithChain(cron.Recover(cron.DefaultLogger)), cron.WithChain(cron.DelayIfStillRunning(cron.DefaultLogger)))
|
||||
_, err := Cron.AddJob("@every 1m", job.NewMonitorJob())
|
||||
_, err := Cron.AddJob("@every 5m", job.NewMonitorJob())
|
||||
if err != nil {
|
||||
global.LOG.Errorf("can not add monitor corn job: %s", err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue