stuff
This commit is contained in:
parent
fb071db667
commit
dd44f53e56
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue