...
|
...
|
@@ -26,6 +26,7 @@
|
26
|
26
|
#include "../../core/timer.h" /* ticks_t */
|
27
|
27
|
|
28
|
28
|
#include "../../core/dprint.h"
|
|
29
|
+#include "../../core/ut.h"
|
29
|
30
|
#include "pike_top.h"
|
30
|
31
|
|
31
|
32
|
#include <stdlib.h>
|
...
|
...
|
@@ -128,11 +129,11 @@ static void pike_top(rpc_t *rpc, void *c)
|
128
|
129
|
stropts = "HOT";
|
129
|
130
|
|
130
|
131
|
DBG("pike:top: string options: '%s'", stropts);
|
131
|
|
- if ( strcasestr(stropts, "ALL") ) {
|
|
132
|
+ if ( strz_casesearch_strz(stropts, "ALL") ) {
|
132
|
133
|
options = NODE_STATUS_ALL;
|
133
|
|
- } else if ( strcasestr(stropts, "HOT") ) {
|
|
134
|
+ } else if ( strz_casesearch_strz(stropts, "HOT") ) {
|
134
|
135
|
options |= NODE_STATUS_HOT;
|
135
|
|
- } else if ( strcasestr(stropts, "WARM") ) {
|
|
136
|
+ } else if ( strz_casesearch_strz(stropts, "WARM") ) {
|
136
|
137
|
options |= NODE_STATUS_WARM;
|
137
|
138
|
}
|
138
|
139
|
DBG("pike:top: options: 0x%02x\n", options);
|