mirror of
https://github.com/samuelncui/acp.git
synced 2025-12-23 13:15:16 +00:00
feat: update godf for bsd
This commit is contained in:
@@ -63,7 +63,7 @@ func (m *diskUsageCache) check(need int64) error {
|
|||||||
return fmt.Errorf("get disk usage fail, mount_point= %s, %w", m.mountPoint, err)
|
return fmt.Errorf("get disk usage fail, mount_point= %s, %w", m.mountPoint, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
m.freeSpace = int64(usage.Available())
|
m.freeSpace = usage.Available()
|
||||||
m.used = need
|
m.used = need
|
||||||
if m.used > m.freeSpace {
|
if m.used > m.freeSpace {
|
||||||
return fmt.Errorf("%w, want= %d have= %d", ErrTargetNoSpace, m.used, m.freeSpace)
|
return fmt.Errorf("%w, want= %d have= %d", ErrTargetNoSpace, m.used, m.freeSpace)
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -11,7 +11,7 @@ require (
|
|||||||
github.com/moby/sys/mountinfo v0.6.2
|
github.com/moby/sys/mountinfo v0.6.2
|
||||||
github.com/modern-go/reflect2 v1.0.2
|
github.com/modern-go/reflect2 v1.0.2
|
||||||
github.com/samber/lo v1.38.1
|
github.com/samber/lo v1.38.1
|
||||||
github.com/samuelncui/godf v0.0.0-20230927093204-37ea5acb9fc1
|
github.com/samuelncui/godf v0.0.0-20231004032257-e436410ad5a0
|
||||||
github.com/schollz/progressbar/v3 v3.13.1
|
github.com/schollz/progressbar/v3 v3.13.1
|
||||||
github.com/sirupsen/logrus v1.9.3
|
github.com/sirupsen/logrus v1.9.3
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user