Skip to content

Commit

Permalink
redfishpower: add clarification comment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chu11 committed Feb 4, 2024
1 parent 6157c95 commit c6e6cb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/redfishpower/redfishpower.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,9 @@ static void shell(CURLM *mh)
long curl_timeout_ms;

/* First check if there are any delayedcmds to send or are
* waiting. Setup timeout accordingly if one is
* waiting */
* waiting. If there are some ready to send, put to
* activecmds. If not, setup timeout accordingly if one
* is waiting */
if (!list_is_empty(delayedcmds)) {
ListIterator itr = list_iterator_create(delayedcmds);
struct powermsg *delaypm;
Expand Down

0 comments on commit c6e6cb7

Please sign in to comment.