]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rados: fix the unit of target-throughput 23683/head
authorcuixf <cuixiaofei@sangfor.com.cn>
Wed, 22 Aug 2018 06:30:53 +0000 (14:30 +0800)
committerXiaofei Cui <cuixiaofei@sangfor.com.cn>
Wed, 22 Aug 2018 06:37:22 +0000 (14:37 +0800)
Make the unit of target-throughtput in bytes as the usage of rados load-gen said.

Signed-off-by: Xiaofei Cui <cuixiaofei@sangfor.com.cn>
src/tools/rados/rados.cc

index d7d6ae0ec1d9884c6c54e3b8a1eb990600df0660..c548cc06c859ed1b3d35bb03c46f7cc9b468cfdc 100644 (file)
@@ -3276,7 +3276,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
     if (max_backlog)
       lg.max_backlog = max_backlog;
     if (target_throughput)
-      lg.target_throughput = target_throughput << 20;
+      lg.target_throughput = target_throughput;
     if (read_percent >= 0)
       lg.read_percent = read_percent;
     if (num_objs)