summaryrefslogtreecommitdiff
path: root/slabs.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2016-05-31 16:02:54 -0700
committerdormando <dormando@rydia.net>2016-06-05 15:01:59 -0700
commit9517c656723a769da63c29e23755b469de4417d2 (patch)
tree6765d39d0b7acba17c0ddf7cdc03aab690a3bd9e /slabs.c
parente15e1d6b967eed53ddcfd61c0c90c38d0b017996 (diff)
downloadmemcached-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slabs.c b/slabs.c
index bfafe5d..6729aea 100644
--- a/slabs.c
+++ b/slabs.c
@@ -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);