Fix typing issues in createTimeWithContext on Freebsd/i386

Before change:
```
$ GOOS=freebsd GOARCH=386 go build ./process
process\process_freebsd.go:118:26: cannot use k.Start.Sec * 1000 + k.Start.Usec / 1000 (type int32) as type int64 in return argument
```
pull/1246/head
Sergey Kozlov 3 years ago
parent e0ec1b9cda
commit 8ae037c8a1

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