This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 960c2f6d Fix INFO used_memory_rss_human field name (#1595)
960c2f6d is described below

commit 960c2f6d210844d3b093381f6120cdb1ab31fef1
Author: Binbin <[email protected]>
AuthorDate: Wed Jul 19 03:52:24 2023 +0800

    Fix INFO used_memory_rss_human field name (#1595)
    
    The name should be used_memory_rss_human according to
    the context and Redis documentation.
---
 src/server/server.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/server.cc b/src/server/server.cc
index ad00be43..286b1d46 100644
--- a/src/server/server.cc
+++ b/src/server/server.cc
@@ -881,7 +881,7 @@ void Server::GetMemoryInfo(std::string *info) {
   std::ostringstream string_stream;
   string_stream << "# Memory\r\n";
   string_stream << "used_memory_rss:" << rss << "\r\n";
-  string_stream << "used_memory_human:" << used_memory_rss_human << "\r\n";
+  string_stream << "used_memory_rss_human:" << used_memory_rss_human << "\r\n";
   string_stream << "used_memory_lua:" << memory_lua << "\r\n";
   string_stream << "used_memory_lua_human:" << used_memory_lua_human << "\r\n";
   string_stream << "used_memory_startup:" << 
memory_startup_use_.load(std::memory_order_relaxed) << "\r\n";

Reply via email to