Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Created August 16, 2010 07:15
Show Gist options
  • Save kazeburo/526559 to your computer and use it in GitHub Desktop.
Save kazeburo/526559 to your computer and use it in GitHub Desktop.
--- memcached-1.4.5.orig/memcached.c 2010-04-04 04:51:29.000000000 +0900
+++ memcached-1.4.5/memcached.c 2010-08-16 16:11:21.000000000 +0900
static void process_stat_settings(ADD_STAT add_stats, void *c) {
assert(add_stats);
- APPEND_STAT("maxbytes", "%u", (unsigned int)settings.maxbytes);
+ APPEND_STAT("maxbytes", "%llu", (unsigned long long)settings.maxbytes);
APPEND_STAT("maxconns", "%d", settings.maxconns);
APPEND_STAT("tcpport", "%d", settings.port);
APPEND_STAT("udpport", "%d", settings.udpport);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment