diff --git a/web/job/check_cpu_usage.go b/web/job/check_cpu_usage.go index 30ce4db6..cd9fcc9a 100644 --- a/web/job/check_cpu_usage.go +++ b/web/job/check_cpu_usage.go @@ -23,7 +23,7 @@ func (j *CheckCpuJob) Run() { threshold, _ := j.settingService.GetTgCpu() // get latest status of server - percent, err := cpu.Percent(1*time.Second, false) + percent, err := cpu.Percent(1*time.Minute, false) if err == nil && percent[0] > float64(threshold) { msg := j.tgbotService.I18nBot("tgbot.messages.cpuThreshold", "Percent=="+strconv.FormatFloat(percent[0], 'f', 2, 64),