From 764f731528b484ccaf1847d1be4d3bac04c04833 Mon Sep 17 00:00:00 2001
From: UltraMegaPotato <cookiecactusmilk@gmail.com>
Date: Thu, 6 Mar 2025 22:22:56 +0300
Subject: [PATCH] Update check_cpu_usage.go

feature(check_cpu_usage): Change the usage interval from second to minute
---
 web/job/check_cpu_usage.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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),