From f58f5c00d171cfd714e1ad6966434c7ce679f60e Mon Sep 17 00:00:00 2001 From: Matthias Fechner Date: Sun, 30 Nov 2025 09:05:36 +0200 Subject: [PATCH] Fix build on i386 system This fixes #6989 Rusage on i386 system is an int32 value: https://cs.opensource.google/go/go/+/refs/tags/go1.25.4:src/syscall/ztypes_freebsd_386.go;l=31 --- internal/command/command.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/command/command.go b/internal/command/command.go index 798ffd1423..9959784378 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -712,11 +712,11 @@ func (c *Command) logProcessComplete() { if ok { attributes = append(attributes, - attribute.Int64("maxrss", rusage.Maxrss), - attribute.Int64("inblock", rusage.Inblock), - attribute.Int64("oublock", rusage.Oublock), - attribute.Int64("minflt", rusage.Minflt), - attribute.Int64("majflt", rusage.Majflt), + attribute.Int64("maxrss", int64(rusage.Maxrss)), + attribute.Int64("inblock", int64(rusage.Inblock)), + attribute.Int64("oublock", int64(rusage.Oublock)), + attribute.Int64("minflt", int64(rusage.Minflt)), + attribute.Int64("majflt", int64(rusage.Majflt)), ) } if c.cgroupPath != "" { -- GitLab