Skip to content

Commit ac15d68

Browse files
authored
Merge pull request #1659 from aidangill-projects/issue-1658
Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check
2 parents 29699cd + 62e5850 commit ac15d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host/host_aix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func UptimeWithContext(ctx context.Context) (uint64, error) {
6565
var days uint64 = 0
6666
var hours uint64 = 0
6767
var minutes uint64 = 0
68-
if ut[3] == "days," {
68+
if ut[3] == "day," || ut[3] == "days," {
6969
days, err = strconv.ParseUint(ut[2], 10, 64)
7070
if err != nil {
7171
return 0, err

0 commit comments

Comments
 (0)