Made the code simpler to parse for humans

pull/5863/head
David Garcia Quintas 9 years ago
parent 711766dc75
commit ca2886a05c
  1. 7
      test/cpp/qps/limit_cores.cc

@ -72,13 +72,16 @@ int LimitCores(const int* cores, int cores_size) {
CPU_FREE(cpup); CPU_FREE(cpup);
return cores_set; return cores_set;
} }
#else
} // namespace testing
} // namespace grpc
#else
namespace grpc { namespace grpc {
namespace testing { namespace testing {
// LimitCores is not currently supported for non-Linux platforms // LimitCores is not currently supported for non-Linux platforms
int LimitCores(const int*, int) { return gpr_cpu_num_cores(); } int LimitCores(const int*, int) { return gpr_cpu_num_cores(); }
#endif
} // namespace testing } // namespace testing
} // namespace grpc } // namespace grpc
#endif

Loading…
Cancel
Save