Skip to content

Commit

Permalink
[Refine] Change procInfo to retrieval all /proc/stat
Browse files Browse the repository at this point in the history
  • Loading branch information
kkdai committed Jul 7, 2016
1 parent 60f24c4 commit 3bb727c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector.go
Expand Up @@ -65,7 +65,7 @@ func (d *DataCollector) GetProcessInfo() string {
if err != nil {
log.Println("stat read fail.")
} else {
retProcessInfo.CPUStatAll = stat.CPUStatAll
retProcessInfo.Stat = *stat
}

retProcessInfo.MachineID = getMachineID()
Expand Down
2 changes: 1 addition & 1 deletion data.go
Expand Up @@ -30,7 +30,7 @@ type ProcessInfo struct {

ProcIO []ProcessIO `json:"proc_io"`

CPUStatAll linuxproc.CPUStat `json:"cpu_all"`
Stat linuxproc.Stat `json:"stat"`
}

//MachineInfo :Machine information
Expand Down

0 comments on commit 3bb727c

Please sign in to comment.