Skip to content

Commit

Permalink
pike: rpc pike.top - support for case insensitive match of parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Aug 11, 2020
1 parent 7115c80 commit 5267f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/pike/pike_rpc.c
Expand Up @@ -128,11 +128,11 @@ static void pike_top(rpc_t *rpc, void *c)
stropts = "HOT";

DBG("pike:top: string options: '%s'", stropts);
if ( strstr(stropts, "ALL") ) {
if ( strcasestr(stropts, "ALL") ) {
options = NODE_STATUS_ALL;
} else if ( strstr(stropts, "HOT") ) {
} else if ( strcasestr(stropts, "HOT") ) {
options |= NODE_STATUS_HOT;
} else if ( strstr(stropts, "WARM") ) {
} else if ( strcasestr(stropts, "WARM") ) {
options |= NODE_STATUS_WARM;
}
DBG("pike:top: options: 0x%02x\n", options);
Expand Down

0 comments on commit 5267f4d

Please sign in to comment.