From: Brian Aker Date: Mon, 1 Oct 2007 19:56:49 +0000 (-0700) Subject: Fixing broken memstat application X-Git-Tag: 0.4~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=26a094f56978a505d16aef3552d5620b6cfc2528;p=m6w6%2Flibmemcached Fixing broken memstat application --- diff --git a/ChangeLog b/ChangeLog index b7a93dcc..8230194b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +0.4 + * memstat was broken (bad if/else on connect) + 0.3 Mon Oct 1 06:37:52 PDT 2007 * Jeff Fisher provided a spec file * Added "make rpm" around dist file diff --git a/src/memstat.c b/src/memstat.c index 23432fb7..0d7bef07 100644 --- a/src/memstat.c +++ b/src/memstat.c @@ -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));