testing: flush
[awesomized/libmemcached] / test / lib / Cluster.cpp
index c3c625cf04eb225069a08d4b5f732ea68132eade..ee7fcbf24f409596fd5f6d404970f7abeea9002e 100644 (file)
@@ -8,7 +8,10 @@ Cluster::Cluster(Server serv, uint16_t cnt)
 , proto{move(serv)}
 {
   if (!cnt) {
-    count = thread::hardware_concurrency()/2 ?: 4;
+    count = thread::hardware_concurrency()/2;
+    if (count < 4) {
+      count = 4;
+    }
   }
   reset();
 }