mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 调整监控数据采集间隔 (#607)
This commit is contained in:
parent
04a1cff37e
commit
b646c5385d
@ -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…
x
Reference in New Issue
Block a user