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

redfishpower: minor cleanup #117

Merged
merged 4 commits into from
Feb 4, 2024
Merged

Conversation

chu11
Copy link
Member

@chu11 chu11 commented Feb 4, 2024

peeling off several commits from multiple other WIP PRs, all minor stuff

Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Problem: The English in a set of comments isn't the most clear.

Add some words that would make the paragraph clearer.
Problem: Values in struct timeval are signed, not unsigned.
A parameter to a function assigning to timeval tv_usec used
"unsigned int" as the parameter type.

Update function parameter from unsigned int to long int, matching the
type of timeval tv_usec.
Problem: The internal macro WAIT_UNTIL_DELAY is not very clear.  And it
may be confusing given the internal "delayed cmds" data structure.

Rename it to STATUS_POLLING_INTERVAL.
Problem: There is a small chunk of redfishpower logic surrounding
delayedcmds that could use some extra clarification.

Add note that delayedcmds ready to be sent out will be moved to
the activecmds list.
@mergify mergify bot merged commit 23ac44d into chaos:master Feb 4, 2024
8 checks passed
@chu11 chu11 deleted the redfishpower_cleanup branch February 4, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants