=== Disk
-Gets used, free and total amount of bytes on the given mounted filesystem.
+Gets used, free, available and total amount of bytes on the given mounted filesystem.
*Example order*: +disk /mnt/usbstick+
-*Example format*: +%free / %total+
+*Example format*: +%free (%avail)/ %total+
=== Run-watch
print_bytes_human((uint64_t)buf.f_bsize * (uint64_t)buf.f_blocks);
walk += strlen("total");
}
+
+ if (BEGINS_WITH(walk+1, "avail")) {
+ print_bytes_human((uint64_t)buf.f_bsize * (uint64_t)buf.f_bavail);
+ walk += strlen("avail");
+ }
}
}