139
171
for (walk_ptr= (char*)value; (!ispunct(*walk_ptr)); walk_ptr++) {};
142
176
memc_stat->rusage_system_seconds= strtoul(value, (char **)NULL, 10);
179
return MEMCACHED_FAILURE;
143
183
memc_stat->rusage_system_microseconds= strtoul(walk_ptr, (char **)NULL, 10);
186
return MEMCACHED_FAILURE;
145
189
else if (not strcmp("curr_items", key))
147
192
memc_stat->curr_items= strtoul(value, (char **)NULL, 10);
195
return MEMCACHED_FAILURE;
149
198
else if (not strcmp("total_items", key))
151
201
memc_stat->total_items= strtoul(value, (char **)NULL, 10);
204
return MEMCACHED_FAILURE;
153
207
else if (not strcmp("bytes_read", key))
155
210
memc_stat->bytes_read= strtoull(value, (char **)NULL, 10);
213
return MEMCACHED_FAILURE;
157
216
else if (not strcmp("bytes_written", key))
159
219
memc_stat->bytes_written= strtoull(value, (char **)NULL, 10);
222
return MEMCACHED_FAILURE;
161
225
else if (not strcmp("bytes", key))
163
228
memc_stat->bytes= strtoull(value, (char **)NULL, 10);
231
return MEMCACHED_FAILURE;
165
234
else if (not strcmp("curr_connections", key))
167
237
memc_stat->curr_connections= strtoull(value, (char **)NULL, 10);
240
return MEMCACHED_FAILURE;
169
243
else if (not strcmp("total_connections", key))
171
246
memc_stat->total_connections= strtoull(value, (char **)NULL, 10);
249
return MEMCACHED_FAILURE;
173
252
else if (not strcmp("connection_structures", key))
175
255
memc_stat->connection_structures= strtoul(value, (char **)NULL, 10);
258
return MEMCACHED_FAILURE;
177
261
else if (not strcmp("cmd_get", key))
179
264
memc_stat->cmd_get= strtoull(value, (char **)NULL, 10);
267
return MEMCACHED_FAILURE;
181
270
else if (not strcmp("cmd_set", key))
183
273
memc_stat->cmd_set= strtoull(value, (char **)NULL, 10);
276
return MEMCACHED_FAILURE;
185
279
else if (not strcmp("get_hits", key))
187
282
memc_stat->get_hits= strtoull(value, (char **)NULL, 10);
285
return MEMCACHED_FAILURE;
189
288
else if (not strcmp("get_misses", key))
191
291
memc_stat->get_misses= strtoull(value, (char **)NULL, 10);
294
return MEMCACHED_FAILURE;
193
297
else if (not strcmp("evictions", key))
195
300
memc_stat->evictions= strtoull(value, (char **)NULL, 10);
303
return MEMCACHED_FAILURE;
197
306
else if (not strcmp("limit_maxbytes", key))
199
309
memc_stat->limit_maxbytes= strtoull(value, (char **)NULL, 10);
312
return MEMCACHED_FAILURE;
201
315
else if (not strcmp("threads", key))
203
318
memc_stat->threads= strtoul(value, (char **)NULL, 10);
321
return MEMCACHED_FAILURE;
205
else if (not (strcmp("delete_misses", key) == 0 or /* New stats in the 1.3 beta */
206
strcmp("delete_hits", key) == 0 or /* Just swallow them for now.. */
207
strcmp("incr_misses", key) == 0 or
208
strcmp("incr_hits", key) == 0 or
209
strcmp("decr_misses", key) == 0 or
210
strcmp("decr_hits", key) == 0 or
211
strcmp("cas_misses", key) == 0 or
212
strcmp("cas_hits", key) == 0 or
213
strcmp("cas_badval", key) == 0 or
214
strcmp("cmd_flush", key) == 0 or
215
strcmp("accepting_conns", key) == 0 or
216
strcmp("listen_disabled_num", key) == 0 or
217
strcmp("conn_yields", key) == 0 or
218
strcmp("auth_cmds", key) == 0 or
219
strcmp("auth_errors", key) == 0 or
220
strcmp("reclaimed", key) == 0))
324
else if ((strcmp("delete_misses", key) == 0 or /* New stats in the 1.3 beta */
325
strcmp("delete_hits", key) == 0 or /* Just swallow them for now.. */
326
strcmp("incr_misses", key) == 0 or
327
strcmp("incr_hits", key) == 0 or
328
strcmp("decr_misses", key) == 0 or
329
strcmp("decr_hits", key) == 0 or
330
strcmp("cas_misses", key) == 0 or
331
strcmp("cas_hits", key) == 0 or
332
strcmp("cas_badval", key) == 0 or
333
strcmp("cmd_flush", key) == 0 or
334
strcmp("accepting_conns", key) == 0 or
335
strcmp("listen_disabled_num", key) == 0 or
336
strcmp("conn_yields", key) == 0 or
337
strcmp("auth_cmds", key) == 0 or
338
strcmp("auth_errors", key) == 0 or
339
strcmp("reclaimed", key) == 0) == 0)
222
341
WATCHPOINT_STRING(key);
223
342
/* return MEMCACHED_UNKNOWN_STAT_KEY; */