File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,9 @@ def teardown(self) -> None:
105
105
def calculate_available_disk (self ):
106
106
"""Disk available for the creation of new VM.
107
107
108
- This take into account the disk request (but not used) for Volume of executions in the pool"""
109
- free_space = shutil .disk_usage (str (settings .PERSISTENT_VOLUMES_DIR )).free // 1000
108
+ This take into account the disk request (but not used) for Volume of executions in the pool
109
+ Result in bytes."""
110
+ free_space = shutil .disk_usage (str (settings .PERSISTENT_VOLUMES_DIR )).free
110
111
# Free disk space reported by system
111
112
112
113
# Calculate the reservation
@@ -115,7 +116,7 @@ def calculate_available_disk(self):
115
116
if not execution .resources :
116
117
continue
117
118
delta = execution .resources .get_disk_usage_delta ()
118
- logger .warning ("Disk usage delta: %d for %s" , delta , execution .vm_hash )
119
+ logger .debug ("Disk usage delta: %d for %s" , delta , execution .vm_hash )
119
120
total_delta += delta
120
121
available_space = free_space - total_delta
121
122
logger .info (
You can’t perform that action at this time.
0 commit comments