From 4643d97a0241995256cfcad34eab310175522846 Mon Sep 17 00:00:00 2001 From: Ran Shidlansik Date: Thu, 14 Nov 2024 14:01:39 +0200 Subject: [PATCH] fix spell and format issues Signed-off-by: Ran Shidlansik --- src/defrag.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/defrag.c b/src/defrag.c index 1b9c7ab448..3c39f046ef 100644 --- a/src/defrag.c +++ b/src/defrag.c @@ -755,13 +755,13 @@ void defragScanCallback(void *privdata, const dictEntry *de) { * or not, a false detection can cause the defragmenter to waste a lot of CPU * without the possibility of getting any results. */ float getAllocatorFragmentation(size_t *out_frag_bytes) { - /* In case we are forcing defrag to run without Jemalloc support we cannot get any - * good statistics from the allocator regarding extarnal fragmentation. + /* In case we are forcing defrag to run without Jemalloc support we cannot get any + * good statistics from the allocator regarding external fragmentation. * This is why we are forcing the report to reflect fragmented system conditions based on the existing configurations. */ #if defined(FORCE_DEFRAG) || !defined(USE_JEMALLOC) - - *out_frag_bytes = server.active_defrag_ignore_bytes+1; - return server.active_defrag_threshold_upper; + + *out_frag_bytes = server.active_defrag_ignore_bytes + 1; + return server.active_defrag_threshold_upper; #else size_t resident, active, allocated, frag_smallbins_bytes;