Skip to content

Commit

Permalink
Fixing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon committed Sep 24, 2023
1 parent ca0637d commit bea1dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloader/free_space_reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _make_partition(self, partition_path) -> 'Partition':
statvfs = os.statvfs(partition_path)
free_space = statvfs.f_frsize * statvfs.f_bavail
block_size = statvfs.f_frsize
self._logger.debug(f'Partition {partition_path} has {free_space} bytes available')
self._logger.debug(f'Partition {partition_path} has {free_space} bytes available [{block_size} bytes per block]')
return Partition(available_space=free_space, min_space=partition_min_space(self._config, partition_path), block_size=block_size)


Expand Down
2 changes: 2 additions & 0 deletions src/downloader/online_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ def _process_config_map(self, config_map, not_fitting_files: Set[str]):
db_importer._add_file_to_store(file_path, file_description)

for file_path in set(self._base_session.files_that_failed_from_zip) - set(file_downloader.correctly_downloaded_files()):
if file_path not in store_by_file:
continue
write_only_store, db_importer, file_description = store_by_file[file_path]
db_importer._add_file_to_store(file_path, file_description)

Expand Down

0 comments on commit bea1dcc

Please sign in to comment.