Explorar el Código

tasks_size_overhead: Always test at least one cpu

Samuel Thibault hace 4 años
padre
commit
0566d30aae
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      tests/microbenchs/tasks_size_overhead.c

+ 2 - 0
tests/microbenchs/tasks_size_overhead.c

@@ -228,6 +228,8 @@ int main(int argc, char **argv)
 		goto error;
 	}
 
+	if (mincpus <= 0)
+		mincpus = 1;
 	/* For each number of cpus, benchmark */
 	for (ncpus= mincpus; ncpus <= maxcpus; ncpus += cpustep)
 	{