Skip to content

Commit

Permalink
sysutils/minikube: Unbreak on i386
Browse files Browse the repository at this point in the history
vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go:118:9: cannot use k.Start.Sec * 1000 + k.Start.Usec / 1000 (value of type int32) as type int64 in return statement

Convert process.Timespec fields to int64 on all archs.

Reported by:	fallout
Approved by:	portmgr (blanket, build fix)
  • Loading branch information
dmgk committed Jul 17, 2022
1 parent f74aefe commit f71ecd5
Showing 1 changed file with 11 additions and 0 deletions.
@@ -0,0 +1,11 @@
--- vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go.orig 2022-07-17 16:56:05 UTC
+++ vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go
@@ -115,7 +115,7 @@ func (p *Process) createTimeWithContext(ctx context.Co
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) {

0 comments on commit f71ecd5

Please sign in to comment.