Merge pull request #1246 from skozlov404/freebsd_386_createTimeWithContext_fix

Fix typing issues in createTimeWithContext on Freebsd/i386
pull/1247/head
shirou 3 years ago committed by GitHub
commit 42ae04cfba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,7 +115,7 @@ func (p *Process) createTimeWithContext(ctx context.Context) (int64, error) {
if err != nil {
return 0, err
}
return k.Start.Sec*1000 + k.Start.Usec/1000, nil
return int64(k.Start.Sec)*1000 + int64(k.Start.Usec)/1000, nil
}
func (p *Process) StatusWithContext(ctx context.Context) ([]string, error) {

Loading…
Cancel
Save