diff options
author | dormando <dormando@rydia.net> | 2016-05-31 16:02:54 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2016-06-05 15:01:59 -0700 |
commit | 9517c656723a769da63c29e23755b469de4417d2 (patch) | |
tree | 6765d39d0b7acba17c0ddf7cdc03aab690a3bd9e /slabs.c | |
parent | e15e1d6b967eed53ddcfd61c0c90c38d0b017996 (diff) | |
download | memcached-9517c656723a769da63c29e23755b469de4417d2.tar.gz |
bump some global stats to 64bit uints
total_items is pretty easy to overflow. Upped some of the others just in case.
Diffstat (limited to 'slabs.c')
-rw-r--r-- | slabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -322,8 +322,8 @@ bool get_stats(const char *stat_type, int nkey, ADD_STAT add_stats, void *c) { /* prepare general statistics for the engine */ STATS_LOCK(); APPEND_STAT("bytes", "%llu", (unsigned long long)stats.curr_bytes); - APPEND_STAT("curr_items", "%u", stats.curr_items); - APPEND_STAT("total_items", "%u", stats.total_items); + APPEND_STAT("curr_items", "%llu", (unsigned long long)stats.curr_items); + APPEND_STAT("total_items", "%llu", (unsigned long long)stats.total_items); STATS_UNLOCK(); if (settings.slab_automove > 0) { pthread_mutex_lock(&slabs_lock); |