From e6d8b7d0706898a30891daf22641db6311b03f9e Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Fri, 4 Jan 2019 13:29:30 -0500 Subject: [PATCH] Use 1024*1024 as 1M as opposed to 10^6 --- duplicacy/duplicacy_main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicacy/duplicacy_main.go b/duplicacy/duplicacy_main.go index ca0c4a4..1e7213f 100644 --- a/duplicacy/duplicacy_main.go +++ b/duplicacy/duplicacy_main.go @@ -1309,7 +1309,7 @@ func benchmark(context *cli.Context) { if storage == nil { return } - duplicacy.Benchmark(repository, storage, int64(fileSize) * 1000000, chunkSize * 1024 * 1024, chunkCount, uploadThreads, downloadThreads) + duplicacy.Benchmark(repository, storage, int64(fileSize) * 1024 * 1024, chunkSize * 1024 * 1024, chunkCount, uploadThreads, downloadThreads) } func main() {