This commit is contained in:
henrygd
2025-12-16 18:33:32 -05:00
parent 996444abeb
commit 82bd953941
5 changed files with 33 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"log/slog"
"os"
"runtime"
"strconv"
"strings"
"time"
@@ -41,6 +42,11 @@ func (a *Agent) refreshStaticInfo() {
}
a.systemDetails.Hostname, _ = os.Hostname()
if arch, err := host.KernelArch(); err == nil {
a.systemDetails.Arch = arch
} else {
a.systemDetails.Arch = runtime.GOARCH
}
platform, _, version, _ := host.PlatformInformation()