mirror of
https://github.com/facebook/zstd.git
synced 2025-07-28 00:01:53 +03:00
removed useless assert()
This commit is contained in:
@ -1338,14 +1338,13 @@ int main(int argCount, const char* argv[])
|
|||||||
if ((nbWorkers==NBWORKERS_AUTOCPU) && (!singleThread)) {
|
if ((nbWorkers==NBWORKERS_AUTOCPU) && (!singleThread)) {
|
||||||
/* automatically set # workers based on # of reported cpus */
|
/* automatically set # workers based on # of reported cpus */
|
||||||
if (defaultLogicalCores) {
|
if (defaultLogicalCores) {
|
||||||
nbWorkers = UTIL_countLogicalCores();
|
nbWorkers = (unsigned)UTIL_countLogicalCores();
|
||||||
DISPLAYLEVEL(3, "Note: %d logical core(s) detected \n", nbWorkers);
|
DISPLAYLEVEL(3, "Note: %d logical core(s) detected \n", nbWorkers);
|
||||||
} else {
|
} else {
|
||||||
nbWorkers = UTIL_countPhysicalCores();
|
nbWorkers = (unsigned)UTIL_countPhysicalCores();
|
||||||
DISPLAYLEVEL(3, "Note: %d physical core(s) detected \n", nbWorkers);
|
DISPLAYLEVEL(3, "Note: %d physical core(s) detected \n", nbWorkers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert(nbWorkers >= 0);
|
|
||||||
if (operation != zom_bench)
|
if (operation != zom_bench)
|
||||||
DISPLAYLEVEL(4, "Compressing with %u worker threads \n", nbWorkers);
|
DISPLAYLEVEL(4, "Compressing with %u worker threads \n", nbWorkers);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user