Skip to content

AIX Uptime parsing fails, returns error #1658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aidangill-projects opened this issue Jun 5, 2024 · 2 comments
Closed

AIX Uptime parsing fails, returns error #1658

aidangill-projects opened this issue Jun 5, 2024 · 2 comments

Comments

@aidangill-projects
Copy link
Contributor

Describe the bug

When using AIX, the uptime parser fails on the output:

10:16PM up 1 day, 21:30, 1 user, load average: 1.91, 1.98, 2.00

With an error of:

Uptime was not set, so cannot calculate boot time from it.

To Reproduce

Any date of 1 day will reproduce the error, due to the string parser expecting "days, ", as a result nothing is returned.

Expected behavior

Calculates correctly.

Environment (please complete the following information):

AIX 7.3

@aidangill-projects
Copy link
Contributor Author

I will post a pull request for this as the fix is very simple

@aidangill-projects
Copy link
Contributor Author

Resolved with pull request

#1659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant