From c818f7b647e7aa817e0b82c99f90ec8973d5de21 Mon Sep 17 00:00:00 2001 From: HeChuan Date: Thu, 20 Jul 2017 11:47:15 +0800 Subject: [PATCH] set win cpu total name to "cpu-total" set the name of windows cpu total percent to "cpu-total" keep the same with Linux, Freebsd system --- cpu/cpu_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/cpu_windows.go b/cpu/cpu_windows.go index 7e3b74b..b5bf825 100644 --- a/cpu/cpu_windows.go +++ b/cpu/cpu_windows.go @@ -69,6 +69,7 @@ func Times(percpu bool) ([]TimesStat, error) { system := (kernel - idle) ret = append(ret, TimesStat{ + CPU: "cpu-total", Idle: float64(idle), User: float64(user), System: float64(system),