We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29699cd + 62e5850 commit ac15d68Copy full SHA for ac15d68
host/host_aix.go
@@ -65,7 +65,7 @@ func UptimeWithContext(ctx context.Context) (uint64, error) {
65
var days uint64 = 0
66
var hours uint64 = 0
67
var minutes uint64 = 0
68
- if ut[3] == "days," {
+ if ut[3] == "day," || ut[3] == "days," {
69
days, err = strconv.ParseUint(ut[2], 10, 64)
70
if err != nil {
71
return 0, err
0 commit comments