You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-fb_procfs/fb_procfs-fix-32bit.patch

13 lines
724 B

diff '--color=auto' -ruN fb_procfs-0.5.0/src/lib.rs fb_procfs-0.5.0-fix-32bit/src/lib.rs
--- fb_procfs-0.5.0/src/lib.rs 1973-11-29 13:33:09.000000000 -0800
+++ fb_procfs-0.5.0-fix-32bit/src/lib.rs 2022-02-17 10:01:07.365184992 -0800
@@ -385,7 +385,7 @@
if let Ok(stat) = sys::statvfs::statvfs(Path::new(&mount_point)) {
let disk_usage = ((stat.blocks() - stat.blocks_available()) as f32 * 100.0)
/ stat.blocks() as f32;
- let partition_size = stat.blocks() * stat.block_size() as u64;
+ let partition_size = stat.blocks() as u64 * stat.block_size() as u64;
return Some((disk_usage, partition_size));
}
}