]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client/SyntheticClient.cc: Fix warning in random_walk
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 4 Apr 2017 00:58:52 +0000 (10:58 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 4 Apr 2017 01:12:12 +0000 (11:12 +1000)
Fixes: http://tracker.ceph.com/issues/19445
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/client/SyntheticClient.cc

index 4b0bae38c88757ecb8900b5b470ab85d2fc01a18..1c1b33aa3a2900d40a83b3d4dce518bc8f369747 100644 (file)
@@ -2656,7 +2656,7 @@ int SyntheticClient::random_walk(int num_req)
     }
 
     // descend?
-    if (.9*roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) {
+    if (roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) {
       string s = get_random_subdir();
       cwd.push_dentry( s );
       dout(DBL) << "cd " << s << " -> " << cwd << dendl;