Skip to content

Commit 28fed09

Browse files
parmesantde-sh
andauthored
refactor
Co-authored-by: Devdutt Shenoi <[email protected]> Signed-off-by: parmesant <[email protected]>
1 parent 3cf6197 commit 28fed09

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/handlers/http/logstream.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,17 @@ pub async fn get_stats(
262262
let stats = {
263263
let ingestion_stats = IngestionStats::new(
264264
stats.current_stats.events,
265-
format!("{} {}", stats.current_stats.ingestion, "Bytes"),
265+
format!("{} Bytes", stats.current_stats.ingestion),
266266
stats.lifetime_stats.events,
267-
format!("{} {}", stats.lifetime_stats.ingestion, "Bytes"),
267+
format!("{} Bytes", stats.lifetime_stats.ingestion),
268268
stats.deleted_stats.events,
269-
format!("{} {}", stats.deleted_stats.ingestion, "Bytes"),
269+
format!("{} Bytes", stats.deleted_stats.ingestion),
270270
"json",
271271
);
272272
let storage_stats = StorageStats::new(
273-
format!("{} {}", stats.current_stats.storage, "Bytes"),
274-
format!("{} {}", stats.lifetime_stats.storage, "Bytes"),
275-
format!("{} {}", stats.deleted_stats.storage, "Bytes"),
273+
format!("{} Bytes", stats.current_stats.storage),
274+
format!("{} Bytes", stats.lifetime_stats.storage),
275+
format!("{} Bytes", stats.deleted_stats.storage),
276276
"parquet",
277277
);
278278

src/handlers/http/modal/query/querier_logstream.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ pub async fn get_stats(
180180
let stats = {
181181
let ingestion_stats = IngestionStats::new(
182182
stats.current_stats.events,
183-
format!("{} {}", stats.current_stats.ingestion, "Bytes"),
183+
format!("{} Bytes", stats.current_stats.ingestion),
184184
stats.lifetime_stats.events,
185-
format!("{} {}", stats.lifetime_stats.ingestion, "Bytes"),
185+
format!("{} Bytes", stats.lifetime_stats.ingestion),
186186
stats.deleted_stats.events,
187-
format!("{} {}", stats.deleted_stats.ingestion, "Bytes"),
187+
format!("{} Bytes", stats.deleted_stats.ingestion),
188188
"json",
189189
);
190190
let storage_stats = StorageStats::new(
191-
format!("{} {}", stats.current_stats.storage, "Bytes"),
192-
format!("{} {}", stats.lifetime_stats.storage, "Bytes"),
193-
format!("{} {}", stats.deleted_stats.storage, "Bytes"),
191+
format!("{} Bytes", stats.current_stats.storage),
192+
format!("{} Bytes", stats.lifetime_stats.storage),
193+
format!("{} Bytes", stats.deleted_stats.storage),
194194
"parquet",
195195
);
196196

0 commit comments

Comments
 (0)