1
0
Fork 0

total 값 추가

This commit is contained in:
Sangbum Kim 2018-07-14 02:22:48 +09:00
parent 9f8fed3b85
commit eba709aa5e
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel
}, },
[]map[string]interface{}{ []map[string]interface{}{
{ {
"total": p.CPU.Total,
"idle": p.CPU.Idle, "idle": p.CPU.Idle,
"nice": p.CPU.Nice, "nice": p.CPU.Nice,
"system": p.CPU.System, "system": p.CPU.System,

View File

@ -113,6 +113,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel
}, },
[]map[string]interface{}{ []map[string]interface{}{
{ {
"total": p.CPU.Total,
"user": p.CPU.User, "user": p.CPU.User,
"nice": p.CPU.Nice, "nice": p.CPU.Nice,
"system": p.CPU.System, "system": p.CPU.System,