From b3c926d9d6df28946f39b7c902099914165ae2a3 Mon Sep 17 00:00:00 2001 From: Oskar <87065584+MedzikUser@users.noreply.github.com> Date: Wed, 18 Aug 2021 23:21:21 +0200 Subject: [PATCH] fix: delete pid (unused value) --- stats/cpu.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/stats/cpu.go b/stats/cpu.go index 790093e..5b59c04 100644 --- a/stats/cpu.go +++ b/stats/cpu.go @@ -16,8 +16,6 @@ type StatCPU struct { Num int // CPU Arch Arch string - // Process ID - pid int } // Get CPU stats @@ -27,7 +25,6 @@ func CPU() (StatCPU, error) { stat := StatCPU{ Num: runtime.NumCPU(), Arch: runtime.GOARCH, - pid: pid, } sysInfo, err := pidusage.GetStat(pid)