Files are generated with each run, no reason to save them.
[m6w6/libmemcached] / src / memstat.c
index 23432fb758787028dd08fa959e3bb2aec0309d4d..0d7bef07af3f694ba5d85730e65e6a7e13f0ad71 100644 (file)
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
 
   stat= memcached_stat(memc, NULL, &rc);
 
-  if (rc != MEMCACHED_SUCCESS || rc != MEMCACHED_SOME_ERRORS);
+  if (rc != MEMCACHED_SUCCESS && rc == MEMCACHED_SOME_ERRORS)
   {
     printf("Failure to communicate with servers (%s)\n",
           memcached_strerror(memc, rc));