From: Brad Hubbard Date: Tue, 4 Apr 2017 00:58:52 +0000 (+1000) Subject: client/SyntheticClient.cc: Fix warning in random_walk X-Git-Tag: v12.0.2~180^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14308%2Fhead;p=ceph.git client/SyntheticClient.cc: Fix warning in random_walk Fixes: http://tracker.ceph.com/issues/19445 Signed-off-by: Brad Hubbard --- diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index 4b0bae38c887..1c1b33aa3a29 100644 --- a/src/client/SyntheticClient.cc +++ b/src/client/SyntheticClient.cc @@ -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;