From dce4999f2e33a1f02dd9ff00348f5489cfbed1ff Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Mon, 8 Apr 2024 11:55:30 +0800 Subject: [PATCH] chore: tiny refactors Signed-off-by: MrCroxx --- src/compute/src/memory/controller.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/compute/src/memory/controller.rs b/src/compute/src/memory/controller.rs index df2fa8285e0f..fddc181e5a65 100644 --- a/src/compute/src/memory/controller.rs +++ b/src/compute/src/memory/controller.rs @@ -190,20 +190,20 @@ impl LruWatermarkController { self.metrics .jemalloc_allocated_bytes - .set(jemalloc_allocated_bytes as i64); + .set(jemalloc_allocated_bytes as _); self.metrics .jemalloc_active_bytes - .set(jemalloc_active_bytes as i64); + .set(jemalloc_active_bytes as _); self.metrics .jemalloc_resident_bytes - .set(jemalloc_resident_bytes as i64); + .set(jemalloc_resident_bytes as _); self.metrics .jemalloc_metadata_bytes - .set(jemalloc_metadata_bytes as i64); + .set(jemalloc_metadata_bytes as _); self.metrics .jvm_allocated_bytes - .set(jvm_allocated_bytes as i64); - self.metrics.jvm_active_bytes.set(jvm_active_bytes as i64); + .set(jvm_allocated_bytes as _); + self.metrics.jvm_active_bytes.set(jvm_active_bytes as _); self.watermark_sequence }