Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mechairoi committed Nov 5, 2015
1 parent 4baa090 commit 9d22fe3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion check-procs/check_procs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,14 @@ func parsePerfProc(fields []string) (proc procState, err error) {
thcount, _ := strconv.ParseInt(fields[5], 10, 64) //ThreadCount
esec, _ := strconv.ParseInt(fields[1], 10, 64) // ElapsedTime
csec := int64(0)
return procState{fields[3] /* Name */, "", fields[2] /* IDProcess */, vsz, rss, pcpu, thcount, "", esec, csec}, nil
return procState{
cmd: fields[3], // Name
pid: fields[2], // IDProcess
vsz: vsz,
rss: rss,
pcpu: pcpu,
thcount: thcount,
esec: esec,
csec: csec,
}, nil
}

0 comments on commit 9d22fe3

Please sign in to comment.