From b05bc817be28bb9a8e6b159885e961160ff234b9 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Tue, 4 Apr 2017 10:58:52 +1000 Subject: [PATCH] client/SyntheticClient.cc: Fix warning in random_walk Fixes: http://tracker.ceph.com/issues/19445 Signed-off-by: Brad Hubbard --- src/client/SyntheticClient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index 4b0bae38c88..1c1b33aa3a2 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; -- 2.39.5