summaryrefslogtreecommitdiff
path: root/swiftclient/multithreading.py
diff options
context:
space:
mode:
authorDaniel Wakefield <daniel.wakefield@hp.com>2014-10-06 15:24:19 +0100
committerDaniel Wakefield <daniel.wakefield@hp.com>2014-10-10 12:57:35 +0100
commit5f89dcc46ea0ae126c9ebc328d6569da839336cd (patch)
treec60cd64cc0d604015bae4a0cdb865f65ba538149 /swiftclient/multithreading.py
parentbb4d2ab59c4de9389667eeed255642f51e276f1e (diff)
downloadpython-swiftclient-5f89dcc46ea0ae126c9ebc328d6569da839336cd.tar.gz
Allow segment size to be specified in a human readable way.
Instead of always specifying segment size in bytes the user can now use B,K,M or G as suffixes for the corresponding size. Conversion is done with Binary units (1024) rather than SI units (1000). e.g swift upload test_container -S 1073741824 large_file can now be written swift upload test_container -S 1G large_file The change is backwards compatible as it ignores arguments to -S that don't have a valid suffix. Updated unit tests and help message. Change-Id: I6314b4e45cf2fbffde2fe57a02df77a25e911e84
Diffstat (limited to 'swiftclient/multithreading.py')
0 files changed, 0 insertions, 0 deletions