summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxuesenliang <xuesenliang@tencent.com>2022-12-21 22:21:09 +0800
committerdormando <dormando@rydia.net>2023-03-08 10:39:28 -0800
commite74232fe49e2d1384302a15bea5b176aa29841fa (patch)
treebd72307e5b3b2c88f856b98ba97f9d914d4b7536
parent49d3642af0a6dd1ba8c5dfabb022955d10ebf125 (diff)
downloadmemcached-e74232fe49e2d1384302a15bea5b176aa29841fa.tar.gz
bugfix: size.c: struct size error
-rw-r--r--sizes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sizes.c b/sizes.c
index 459eea7..2847924 100644
--- a/sizes.c
+++ b/sizes.c
@@ -11,7 +11,7 @@ int main(int argc, char **argv) {
display("Slab Stats", sizeof(struct slab_stats));
display("Thread stats",
sizeof(struct thread_stats)
- - (200 * sizeof(struct slab_stats)));
+ - (MAX_NUMBER_OF_SLAB_CLASSES * sizeof(struct slab_stats)));
display("Global stats", sizeof(struct stats));
display("Settings", sizeof(struct settings));
display("Item (no cas)", sizeof(item));