From 26a094f56978a505d16aef3552d5620b6cfc2528 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 1 Oct 2007 12:56:49 -0700 Subject: [PATCH] Fixing broken memstat application --- ChangeLog | 3 +++ src/memstat.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)); -- 2.30.2