Kaynağa Gözat

tasks_size_overhead: Always test at least one cpu

Samuel Thibault 4 yıl önce
ebeveyn
işleme
0566d30aae
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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)
 	{