Skip to content
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

monster prompt __prompt_cpu does not handle multi-day uptimes #46

Open
sinewalker opened this issue Jun 12, 2018 · 1 comment
Open

monster prompt __prompt_cpu does not handle multi-day uptimes #46

sinewalker opened this issue Jun 12, 2018 · 1 comment
Labels

Comments

@sinewalker
Copy link
Owner

Because_ the awk scripts in __prompt_cpu() naively print fields by position, when the uptime goes past 23:59 mins and uptime prints "X day, Y mins" then everything gets out of position.

@sinewalker sinewalker added the bug label Jun 12, 2018
sinewalker added a commit that referenced this issue Jun 12, 2018
This should handle uptimes less than a day, and differences between BSD and GNU
uptime output also.

Issue #46
sinewalker added a commit that referenced this issue Jun 12, 2018
when you go more than a day and an hour uptime, both BSD and GNU uptime prints
h:mm as one field, and no "mins".

Issue #46
@sinewalker
Copy link
Owner Author

there are now issues for sub one-day uptimes. don't understand it tonight.

@sinewalker sinewalker reopened this Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant