Merge pull request #251 from theothertomelliott/master
Correctly handle long running processes on OSX
This commit is contained in:
commit
79184fee44
|
@ -111,7 +111,7 @@ func (p *Process) CreateTime() (int64, error) {
|
|||
return 0, err
|
||||
}
|
||||
|
||||
elapsedSegments := strings.Split(r[0][0], ":")
|
||||
elapsedSegments := strings.Split(strings.Replace(r[0][0], "-", ":", 1), ":")
|
||||
var elapsedDurations []time.Duration
|
||||
for i := len(elapsedSegments) - 1; i >= 0; i-- {
|
||||
p, err := strconv.ParseInt(elapsedSegments[i], 10, 0)
|
||||
|
|
Loading…
Reference in New Issue