Skip to content

Commit

Permalink
Merge pull request #1659 from aidangill-projects/issue-1658
Browse files Browse the repository at this point in the history
Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check
  • Loading branch information
shirou authored Jun 5, 2024
2 parents 29699cd + 62e5850 commit ac15d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/host_aix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac15d68

Please sign in to comment.