Procházet zdrojové kódy

tasks_size_overhead: Always test at least one cpu

Samuel Thibault před 4 roky
rodič
revize
0566d30aae
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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)
 	{