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

Use %H for output generated with iostat -t #6

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

raharper
Copy link
Contributor

LANG=en_US.UTF-8 iostat -t generates timestamps which use 24-hour time This does not match the IOSTAT_DATE_FORMAT_JA, which uses %I, 12-hour value and would require a %p for AM/PM; in any case, the JA format is not generated by iostat. Fix the examples and switch %I -> %H

Fixes: #5

@t2y
Copy link
Owner

t2y commented Jan 11, 2024

@raharper Thank you for sending a patch. I updated the master branch so that github actions can run. Could you rebase?

@raharper raharper force-pushed the fix/iostat-time-format-24h branch from 8ddf67c to 764907c Compare January 11, 2024 16:06
@t2y
Copy link
Owner

t2y commented Jan 12, 2024

@raharper Thank you for rebasing. I confirmed a test failed. Could you confirm and fix the wrong tests?

$ py.test -v --doctest-modules iostat tests

@t2y t2y self-requested a review January 12, 2024 07:06
@t2y t2y added the bug Something isn't working label Jan 12, 2024
LANG=en_US.UTF-8 iostat -t generates timestamps which use 24-hour time
This does not match the IOSTAT_DATE_FORMAT_JA, which uses %I, 12-hour
value and would require a %p for AM/PM; in any case, the JA format
is not generated by iostat.  Fix the examples and switch %I -> %H

Fixes: t2y#5

Signed-off-by: Ryan Harper <[email protected]>
@raharper raharper force-pushed the fix/iostat-time-format-24h branch from 764907c to 4884547 Compare January 12, 2024 17:25
@raharper
Copy link
Contributor Author

@raharper Thank you for rebasing. I confirmed a test failed. Could you confirm and fix the wrong tests?

* https://github.com/t2y/iostat-tool/actions/runs/7491387295/job/20414842167?pr=6
$ py.test -v --doctest-modules iostat tests

I've pushed a fix. I was able to run the testsuite with:

tox -e py38

@t2y
Copy link
Owner

t2y commented Jan 13, 2024

Thank you for fixing the problem. I confirmed a CI job succeeded.

@t2y t2y merged commit 5562211 into t2y:master Jan 13, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError: time data '08/08/23 21:49:22' does not match format
2 participants