diff options
author | Serhii (Sergey) Kozlov <skozlov@FreeBSD.org> | 2022-02-08 21:23:28 +0000 |
---|---|---|
committer | Serhii (Sergey) Kozlov <skozlov@FreeBSD.org> | 2022-02-08 21:24:20 +0000 |
commit | 63b098abd07ab92f277946807794e9edb5284699 (patch) | |
tree | 5db6abbb2b86ca71340e8aec282cb1db4dbd1549 | |
parent | 4066838a867e8e9ebd15914d590afb57cf2f0b55 (diff) | |
download | ports-63b098abd07ab92f277946807794e9edb5284699.tar.gz ports-63b098abd07ab92f277946807794e9edb5284699.zip |
ftp/sftpgo: Fix build on i386
-rw-r--r-- | ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go b/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go new file mode 100644 index 000000000000..6011ca54e942 --- /dev/null +++ b/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go @@ -0,0 +1,12 @@ +--- vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go.orig 2022-02-06 14:12:45 UTC ++++ vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go +@@ -115,7 +115,8 @@ func (p *Process) createTimeWithContext(ctx context.Co + if err != nil { + return 0, err + } +- return k.Start.Sec*1000 + k.Start.Usec/1000, nil ++ // Pull request: https://github.com/shirou/gopsutil/pull/1246 ++ return int64(k.Start.Sec)*1000 + int64(k.Start.Usec)/1000, nil + } + + func (p *Process) StatusWithContext(ctx context.Context) ([]string, error) { |