Skip to content

Commit 20cd15f

Browse files
author
Devdutt Shenoi
committed
fix: frontend expects "x Bytes"
1 parent 6bd5c0a commit 20cd15f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/human_size.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ pub fn serialize<S>(bytes: &u64, serializer: S) -> Result<S::Ok, S::Error>
4646
where
4747
S: Serializer,
4848
{
49-
let human_readable = bytes_to_human_size(*bytes);
49+
// let human_readable = bytes_to_human_size(*bytes);
50+
// NOTE: frontend expects the size in bytes
51+
let human_readable = format!("{bytes} Bytes");
5052
serializer.serialize_str(&human_readable)
5153
}
5254

0 commit comments

Comments
 (0)