]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: bench: fix the signed/unsigned comparison warning
authorKefu Chai <kchai@redhat.com>
Sat, 30 Jan 2016 17:37:18 +0000 (01:37 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 31 Jan 2016 04:18:40 +0000 (12:18 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/obj_bencher.cc

index 61c132716aa324bb673a6d6503de4490f3ff437d..9211b98340661c78db8ff7f69ea4592a971d1348 100644 (file)
@@ -508,8 +508,8 @@ int ObjBencher::write_bench(int secondsToRun,
     ++data.started;
     ++data.in_flight;
     if (max_objects &&
-       data.started > (data.object_size * max_objects + data.op_size - 1) /
-       data.op_size)
+       data.started > (int)((data.object_size * max_objects + data.op_size - 1) /
+                            data.op_size))
       break;
   }
   lock.Unlock();