]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
SyntheticClient.cc: Clarify calculation precedence for '%' and '?'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 11:25:06 +0000 (12:25 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 11:25:06 +0000 (12:25 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/client/SyntheticClient.cc

index d7ef8c89ecf6c582b028f821d5269d05452a4a75..316eb749653998da24103bccc369b67037a5d7dd 100644 (file)
@@ -827,7 +827,7 @@ int SyntheticClient::run()
         int count = iargs.front();  iargs.pop_front();
         if (run_me()) {
           for (int i=0; i<count; i++) {
-            int fd = client->open("test", rand()%2 ? (O_WRONLY|O_CREAT):O_RDONLY);
+            int fd = client->open("test", (rand()%2) ? (O_WRONLY|O_CREAT) : O_RDONLY);
             if (fd > 0) client->close(fd);
           }
         }