projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
375c532
)
Fixing broken memstat application
author
Brian Aker
<brian@tangent.org>
Mon, 1 Oct 2007 19:56:49 +0000
(12:56 -0700)
committer
Brian Aker
<brian@tangent.org>
Mon, 1 Oct 2007 19:56:49 +0000
(12:56 -0700)
ChangeLog
patch
|
blob
|
history
src/memstat.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index b7a93dccd754b578c7a9d13aaf6260002edc9de6..8230194bf1deb0879483fdeff8d0db35fa49ef2a 100644
(file)
--- 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 <guppy@techmonkeys.org> provided a spec file
* Added "make rpm" around dist file
diff --git
a/src/memstat.c
b/src/memstat.c
index 23432fb758787028dd08fa959e3bb2aec0309d4d..0d7bef07af3f694ba5d85730e65e6a7e13f0ad71 100644
(file)
--- 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));