git: 63b098abd07a - main - ftp/sftpgo: Fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Feb 2022 21:24:39 UTC
The branch main has been updated by skozlov: URL: https://cgit.FreeBSD.org/ports/commit/?id=63b098abd07ab92f277946807794e9edb5284699 commit 63b098abd07ab92f277946807794e9edb5284699 Author: Serhii (Sergey) Kozlov <skozlov@FreeBSD.org> AuthorDate: 2022-02-08 21:23:28 +0000 Commit: Serhii (Sergey) Kozlov <skozlov@FreeBSD.org> CommitDate: 2022-02-08 21:24:20 +0000 ftp/sftpgo: Fix build on i386 --- ...github.com_shirou_gopsutil_v3_process_process__freebsd.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) {