From d8e7aa7974f771ffdc102c2709352ce58e021146 Mon Sep 17 00:00:00 2001 From: oceanoverflow Date: Tue, 6 Feb 2024 23:50:45 +0000 Subject: [PATCH] fix print band limit log issue --- deps/oblib/src/lib/utility/utility.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/oblib/src/lib/utility/utility.cpp b/deps/oblib/src/lib/utility/utility.cpp index a4a3dde60f..a3d065f727 100644 --- a/deps/oblib/src/lib/utility/utility.cpp +++ b/deps/oblib/src/lib/utility/utility.cpp @@ -1418,8 +1418,9 @@ int ObBandwidthThrottle::limit_and_sleep(const int64_t bytes, const int64_t last const int64_t copy_KB = (total_bytes_ - last_printed_bytes_) / 1024; const int64_t speed_KB_per_s = copy_KB * 1000 / print_interval_ms; const int64_t sleep_ms_sum = total_sleep_ms_ - last_printed_sleep_ms_; + const int64_t rate_KB = rate_ / 1024; COMMON_LOG(INFO, "print band limit", KCSTRING_(comment), K(copy_KB), K(sleep_ms_sum), K(speed_KB_per_s), - K_(total_sleep_ms), K_(total_bytes), "rate_KB/s", rate_, K(print_interval_ms)); + K_(total_sleep_ms), K_(total_bytes), "rate_KB/s", rate_KB, K(print_interval_ms)); last_printed_bytes_ = total_bytes_; last_printed_sleep_ms_ = total_sleep_ms_; last_printed_ts_ = cur_time;