Merge pull request #251 from theothertomelliott/master

Correctly handle long running processes on OSX
This commit is contained in:
shirou 2016-08-29 14:31:36 +09:00 committed by GitHub
commit 79184fee44
1 changed files with 1 additions and 1 deletions

View File

@ -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)