Formatted Document

This commit is contained in:
Kartik Dua
2025-04-08 01:40:22 +05:30
parent 04a92a8fb3
commit fa4399bdbe
+2 -2
View File
@@ -398,9 +398,9 @@ fn format_directive<'entry>(
// but in reality it just returns the number of blocks, *regardless
// of their size on the filesystem*. That behavior is copied here,
// even though it's arguably not 100% correct.
let bs = if *large_blocks {1024} else {512};
let bs = if *large_blocks { 1024 } else { 512 };
let blocks = len.div_ceil(bs);
blocks.to_string().into()
}