fix: delete pid (unused value)

This commit is contained in:
Oskar 2021-08-18 23:21:21 +02:00 committed by GitHub
parent 2affef3083
commit b3c926d9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -16,8 +16,6 @@ type StatCPU struct {
Num int Num int
// CPU Arch // CPU Arch
Arch string Arch string
// Process ID
pid int
} }
// Get CPU stats // Get CPU stats
@ -27,7 +25,6 @@ func CPU() (StatCPU, error) {
stat := StatCPU{ stat := StatCPU{
Num: runtime.NumCPU(), Num: runtime.NumCPU(),
Arch: runtime.GOARCH, Arch: runtime.GOARCH,
pid: pid,
} }
sysInfo, err := pidusage.GetStat(pid) sysInfo, err := pidusage.GetStat(pid)