We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdafef6 commit feb3591Copy full SHA for feb3591
1 file changed
host/src/lib.rs
@@ -1578,7 +1578,7 @@ fn sparsify_snapshot(path: &Path) -> Result<()> {
1578
drop(mmap);
1579
1580
if punched > 0 {
1581
- let disk_mib = (len as u64 - punched * PAGE as u64) / 1024 / 1024;
+ let disk_mib = (len - punched * PAGE as u64) / 1024 / 1024;
1582
eprintln!(" sparsified: {disk_mib} MiB on disk (punched {punched} zero pages)",);
1583
}
1584
@@ -1666,7 +1666,7 @@ fn sparsify_snapshot(path: &Path) -> Result<()> {
1666
1667
1668
1669
1670
1671
1672
0 commit comments