Skip to content

Commit

Permalink
Use avail_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Sep 6, 2024
1 parent ce5356a commit fef3476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/apps/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def available_space(self):
Returns space available in bytes in the configured apps pool which apps can consume
"""
await self.middleware.call('docker.state.validate')
return (await self.middleware.call('filesystem.statfs', IX_APPS_MOUNT_PATH))['free_bytes']
return (await self.middleware.call('filesystem.statfs', IX_APPS_MOUNT_PATH))['avail_bytes']

@accepts(roles=['APPS_READ'])
@returns(Dict('gpu_choices', additional_attrs=True))
Expand Down

0 comments on commit fef3476

Please sign in to comment.