[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets #100

Merged
merged 13 commits into from
Jul 8, 2024
Prev Previous commit
Next Next commit
cast
  • Loading branch information
mariusandra committed Jul 8, 2024
commit 541b33140297281aed3f6bf65cac4f87adeb7005
2 changes: 1 addition & 1 deletion frameos/src/frameos/utils/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ proc getAvailableDiskSpace*(path: string): int64 =
try:
var statvfs: StatVfs
if fstatvfs(fd, statvfs) == 0:
return statvfs.f_bavail * statvfs.f_frsize
return (statvfs.f_bavail * statvfs.f_frsize).int64
finally:
discard close(fd)
return -1
Loading