From 62e58507266de685ba5596e038e306bfac187148 Mon Sep 17 00:00:00 2001 From: Aidan Date: Wed, 5 Jun 2024 16:03:13 +1200 Subject: [PATCH] Fixed parsing error where 'day,' is ignored --- host/host_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/host_aix.go b/host/host_aix.go index 39f7447f1..7d66666e5 100644 --- a/host/host_aix.go +++ b/host/host_aix.go @@ -65,7 +65,7 @@ func UptimeWithContext(ctx context.Context) (uint64, error) { var days uint64 = 0 var hours uint64 = 0 var minutes uint64 = 0 - if ut[3] == "days," { + if ut[3] == "day," || ut[3] == "days," { days, err = strconv.ParseUint(ut[2], 10, 64) if err != nil { return 0, err