Skip to content

Commit 6f8111c

Browse files
committed
- readme update and merge fix
1 parent a7d0459 commit 6f8111c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Sources and targets are decoupled, this design enables the composition of variou
2929
Download, extract and set permissions:
3030

3131
```bash
32-
wget -O bp_linux.tar.gz https://github.com/Azure/blobporter/releases/download/v0.5.13/bp_linux.tar.gz
32+
wget -O bp_linux.tar.gz https://github.com/Azure/blobporter/releases/download/v0.5.14/bp_linux.tar.gz
3333
tar -xvf bp_linux.tar.gz linux_amd64/blobporter
3434
chmod +x ~/linux_amd64/blobporter
3535
cd ~/linux_amd64
@@ -46,7 +46,7 @@ export ACCOUNT_KEY=<STORAGE_ACCOUNT_KEY>
4646
4747
### Windows
4848

49-
Download [BlobPorter.exe](https://github.com/Azure/blobporter/releases/download/v0.5.13/bp_windows.zip)
49+
Download [BlobPorter.exe](https://github.com/Azure/blobporter/releases/download/v0.5.14/bp_windows.zip)
5050

5151
Set environment variables (if using the command prompt):
5252

@@ -141,7 +141,7 @@ By default files are downloaded to the same directory where you are running blob
141141
142142
## Command Options
143143

144-
- `-f`, `--file` *string* URL, file or files (e.g. /data/*.gz) to upload.
144+
- `-f`, `--source_file` *string* URL, file or files (e.g. /data/*.gz) to upload.
145145

146146
- `-c`, `--container_name` *string* container name (e.g. `mycontainer`).
147147

sources/multifile.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ func newMultiFilePipeline(files []string, targetAliases []string, blockSize uint
117117
if fileStat.Size() == 0 {
118118
log.Fatalf("Empty files are not allowed. The file %v is empty", files[f])
119119
}
120-
121-
numOfBlocks := util.GetNumberOfBlocks(uint64(fileStat.Size()), blockSize)
120+
numOfBlocks := int(uint64(fileStat.Size())+(blockSize-1)) / int(blockSize)
122121
totalSize = totalSize + uint64(fileStat.Size())
123122
totalNumberOfBlocks = totalNumberOfBlocks + numOfBlocks
124123

0 commit comments

Comments
 (0)