Skip to content

Commit

Permalink
fix spell and format issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ran Shidlansik <[email protected]>
  • Loading branch information
ranshid committed Nov 14, 2024
1 parent c1862eb commit 4643d97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/defrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4643d97

Please sign in to comment.