Bad data for threads (Toru patch)
author <brian@gir-3.local> <>
Thu, 19 Jun 2008 01:19:15 +0000 (18:19 -0700)
committer <brian@gir-3.local> <>
Thu, 19 Jun 2008 01:19:15 +0000 (18:19 -0700)
libmemcached/memcached_stats.c

index cf3adc12dfc6e2ff296248ba52cd665309b56490..4ba2dd966497d3491ab43af72f5f9d0938d88a20 100644 (file)
@@ -134,7 +134,7 @@ static void set_data(memcached_stat_st *stat, char *key, char *value)
   }
   else if (!strcmp("threads", key))
   {
-    stat->threads= strtol(key, (char **)NULL, 10);
+    stat->threads= strtol(value, (char **)NULL, 10);
   }
   else
   {