File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
server/src/handlers/http/modal Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -530,12 +530,17 @@ impl QueryServer {
530530 }
531531
532532 pub fn merge_quried_stats ( stats : Vec < QueriedStats > ) -> QueriedStats {
533+ // get the actual creation time
533534 let min_creation_time = stats
534535 . iter ( )
535536 . map ( |x| x. creation_time . parse :: < DateTime < Utc > > ( ) . unwrap ( ) )
536537 . min ( )
537538 . unwrap_or_default ( ) ;
539+
540+ // get the stream name
538541 let stream_name = stats[ 0 ] . stream . clone ( ) ;
542+
543+ // get the first event at
539544 let min_first_event_at = stats
540545 . iter ( )
541546 . map ( |x| match x. first_event_at . as_ref ( ) {
@@ -554,7 +559,7 @@ impl QueryServer {
554559 . fold ( IngestionStats :: default ( ) , |acc, x| IngestionStats {
555560 count : acc. count + x. count ,
556561 size : format ! (
557- "{}" ,
562+ "{} Bytes " ,
558563 acc. size. split( ' ' ) . collect_vec( ) [ 0 ]
559564 . parse:: <u64 >( )
560565 . unwrap_or_default( )
@@ -571,7 +576,7 @@ impl QueryServer {
571576 . map ( |x| & x. storage )
572577 . fold ( StorageStats :: default ( ) , |acc, x| StorageStats {
573578 size : format ! (
574- "{}" ,
579+ "{} Bytes " ,
575580 acc. size. split( ' ' ) . collect_vec( ) [ 0 ]
576581 . parse:: <u64 >( )
577582 . unwrap_or_default( )
You can’t perform that action at this time.
0 commit comments