From cba1bdb94d8c9254c6b282d5670dfb788616e8d8 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Mon, 1 Jan 2024 21:18:52 +0800 Subject: [PATCH] format --- be/src/olap/data_dir.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/be/src/olap/data_dir.h b/be/src/olap/data_dir.h index 4a94291c013543..f8a405d4ffd4fd 100644 --- a/be/src/olap/data_dir.h +++ b/be/src/olap/data_dir.h @@ -134,8 +134,10 @@ class DataDir { void disks_compaction_num_increment(int64_t delta); double get_usage(int64_t incoming_data_size) const { - return _disk_capacity_bytes == 0 ? 0 : - (_disk_capacity_bytes - _available_bytes + incoming_data_size) / (double)_disk_capacity_bytes; + return _disk_capacity_bytes == 0 + ? 0 + : (_disk_capacity_bytes - _available_bytes + incoming_data_size) / + (double)_disk_capacity_bytes; } // Move tablet to trash.