diff --git a/host/host_aix.go b/host/host_aix.go index 2034f71..011801a 100644 --- a/host/host_aix.go +++ b/host/host_aix.go @@ -65,14 +65,6 @@ func UptimeWithContext(ctx context.Context) (uint64, error) { // Initialise variables var days, hours, mins uint64 - // Check if days are specified and parse them - if ut[3] == "day," || ut[3] == "days," { - days, err = strconv.ParseUint(ut[2], 10, 64) - if err != nil { - return 0, err - } - } - switch { case ut[3] == "day," || ut[3] == "days,": days, err = strconv.ParseUint(ut[2], 10, 64)