Skip to content

Commit

Permalink
adjust clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Oct 7, 2024
1 parent 31965f4 commit a01e683
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ static int updateMaxmemory(const char **err) {
"depending on the maxmemory-policy.",
server.maxmemory, used);
}
calculateMaxAvailableMemory();
calculateMaxAvailableMemory();
startEvictionTimeProc();
}
return 1;
Expand Down
2 changes: 1 addition & 1 deletion src/evict.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ int getMaxmemoryState(size_t *total, size_t *logical, size_t *tofree, float *lev

/* Compute the ratio of memory usage. */
if (level) {
*level = (float)mem_used / (float)server.maxmemory_available;
*level = (float)mem_used / (float)server.maxmemory_available;
}

if (mem_reported <= server.maxmemory_available) return C_OK;
Expand Down
6 changes: 3 additions & 3 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -5597,9 +5597,9 @@ sds genValkeyInfoString(dict *section_dict, int all_sections, int everything) {
"maxmemory:%lld\r\n", server.maxmemory,
"maxmemory_human:%s\r\n", maxmemory_hmem,
"maxmemory_policy:%s\r\n", evict_policy,
"maxmemory_reserved_scale:%d\r\n",server.maxmemory_reserved_scale,
"maxmemory_available:%lld\r\n",server.maxmemory_available,
"maxmemory_available_human:%s\r\n",maxmemory_available_hmem,
"maxmemory_reserved_scale:%d\r\n", server.maxmemory_reserved_scale,
"maxmemory_available:%lld\r\n", server.maxmemory_available,
"maxmemory_available_human:%s\r\n", maxmemory_available_hmem,
"allocator_frag_ratio:%.2f\r\n", mh->allocator_frag,
"allocator_frag_bytes:%zu\r\n", mh->allocator_frag_bytes,
"allocator_rss_ratio:%.2f\r\n", mh->allocator_rss,
Expand Down

0 comments on commit a01e683

Please sign in to comment.