fix: update CPU usage calculation to use a one-second interval

This commit is contained in:
CorentinMre
2025-10-12 16:36:19 +02:00
parent 8537b6fbbf
commit b200ed6a73
+1 -1
View File
@@ -117,7 +117,7 @@ func getRealOS() string {
func GetServerMetrics() database.ServerMetric {
v, _ := mem.VirtualMemory()
c, _ := cpu.Percent(0, false)
c, _ := cpu.Percent(time.Second, false)
cpuInfo, _ := cpu.Info()
diskInfo, _ := disk.Usage("/")
netInfo, _ := net.IOCounters(false)