Merge
[awesomized/libmemcached] / libmemcached / memcached_stats.c
index 4ba2dd966497d3491ab43af72f5f9d0938d88a20..bbc82b6e0dad306307816c0159bb2dbb7bfcd4e9 100644 (file)
@@ -84,6 +84,14 @@ static void set_data(memcached_stat_st *stat, char *key, char *value)
   {
     stat->total_items= strtol(value, (char **)NULL, 10);
   }
+  else if (!strcmp("bytes_read", key))
+  {
+    stat->bytes_read= strtoll(value, (char **)NULL, 10);
+  }
+  else if (!strcmp("bytes_written", key))
+  {
+    stat->bytes_written= strtoll(value, (char **)NULL, 10);
+  }
   else if (!strcmp("bytes", key))
   {
     stat->bytes= strtoll(value, (char **)NULL, 10);
@@ -120,14 +128,6 @@ static void set_data(memcached_stat_st *stat, char *key, char *value)
   {
     stat->evictions= (uint64_t)strtoll(value, (char **)NULL, 10);
   }
-  else if (!strcmp("bytes_read", key))
-  {
-    stat->bytes_read= strtoll(value, (char **)NULL, 10);
-  }
-  else if (!strcmp("bytes_written", key))
-  {
-    stat->bytes_written= strtoll(value, (char **)NULL, 10);
-  }
   else if (!strcmp("limit_maxbytes", key))
   {
     stat->limit_maxbytes= strtoll(value, (char **)NULL, 10);