From eba709aa5e8bfa28e420acb9ec2534461e1b8845 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Sat, 14 Jul 2018 02:22:48 +0900 Subject: [PATCH] =?UTF-8?q?total=20=EA=B0=92=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- producer/os_darwin.go | 1 + producer/os_linux.go | 1 + 2 files changed, 2 insertions(+) diff --git a/producer/os_darwin.go b/producer/os_darwin.go index bde909d..54efb34 100644 --- a/producer/os_darwin.go +++ b/producer/os_darwin.go @@ -99,6 +99,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel }, []map[string]interface{}{ { + "total": p.CPU.Total, "idle": p.CPU.Idle, "nice": p.CPU.Nice, "system": p.CPU.System, diff --git a/producer/os_linux.go b/producer/os_linux.go index 1e482d2..db22ac8 100644 --- a/producer/os_linux.go +++ b/producer/os_linux.go @@ -113,6 +113,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel }, []map[string]interface{}{ { + "total": p.CPU.Total, "user": p.CPU.User, "nice": p.CPU.Nice, "system": p.CPU.System,