This commit is contained in:
xqtc 2025-04-16 17:00:06 +02:00
parent fb071db667
commit dd44f53e56
Signed by: xqtc
GPG key ID: 2C064D095926D9D1

View file

@ -35,11 +35,12 @@ fn main() -> Result<(), Box<dyn Error>> {
if m != "/boot" && m != "/nix/store" {
let total_space = disk.total_space();
let avail_space = disk.available_space();
let used_space = total_space - avail_space;
disk_str.push_str(
format!(
"DISK {}:{}/{}GB",
m,
avail_space / 1073741824,
used_space / 1073741824,
total_space / 1073741824
)
.as_str(),