1 parent
2c86577b95
commit
f04401ba4d
6 files changed
+84
-27
No files matched your search
@@ -230,14 +230,3 @@ func exportFiles(f string, fs []string, pwd string) {
|
||||
os.Setenv("fx", envFiles)
|
||||
}
|
||||
}
|
||||
func diskFree(wd string) string {
|
||||
var stat unix.Statfs_t
|
||||
|
||||
if err := unix.Statfs(wd, &stat); err != nil {
|
||||
log.Printf("diskfree: %s", err)
|
||||
return ""
|
||||
}
|
||||
|
||||
// Available blocks * size per block = available space in bytes
|
||||
return "df: " + humanize(int64(uint64(stat.Bavail)*uint64(stat.Bsize)))
|
||||
}
|
||||
Reference in new issue
Block a user