Skip to content

Commit

Permalink
fix partitions, broken because naturalsize output has no spaces anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Dec 9, 2024
1 parent 134f952 commit 4a7487f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,7 @@ def download(self, msg, options) -> int:
if msg['blocks']['method'] in [ 'inplace' ]: # download only a specific block from a file, not the whole thing.
logger.debug( f"splitting 1 file into {len(msg['blocks']['manifest'])} block messages." )
blkno = msg['blocks']['number']
blksz_l = sarracenia.naturalSize(msg['blocks']['size']).split()
blksz = blksz_l[0]+blksz_l[1][0].lower()
blksz = sarracenia.naturalSize(msg['blocks']['size']).lower()
if not '§block_' in new_file:
new_file += f"§block_{blkno:04d},{blksz}_§"
msg['new_file'] = new_file
Expand Down

0 comments on commit 4a7487f

Please sign in to comment.