total 값 추가
This commit is contained in:
parent
9f8fed3b85
commit
eba709aa5e
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue