Browse Source

tasks_size_overhead: Always test at least one cpu

Samuel Thibault 4 years ago
parent
commit
0566d30aae
1 changed files with 2 additions and 0 deletions
  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)
 	{