From c36f7ac8b0514e7b860570b1e52b2d0979860102 Mon Sep 17 00:00:00 2001 From: Ben Aldrich Date: Wed, 1 Jun 2016 15:45:29 -0600 Subject: [PATCH] rename var --- cpu/cpu.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpu/cpu.go b/cpu/cpu.go index b5417ae..dbdef17 100644 --- a/cpu/cpu.go +++ b/cpu/cpu.go @@ -39,14 +39,13 @@ type InfoStat struct { Flags []string `json:"flags"` } -//CPUPercent -type cpuPercent struct { +type lastPercent struct { sync.Mutex lastCPUTimes []TimesStat lastPerCPUTimes []TimesStat } -var lastCPUPercent cpuPercent +var lastCPUPercent lastPercent var invoke common.Invoker func init() {