btreplay: Fix typo in scaling up the dynamic cpu set size.
[blktrace.git] / btreplay / btreplay.c
index 54440103e25fdb6efa430df2c2f46efd26e47a8e..f76227979ebccfedd85ab93a88bbb44ae67da2ec 100644 (file)
@@ -516,7 +516,7 @@ realloc:
        if (sched_getaffinity(getpid(), size, cpus)) {
                if( errno == EINVAL && nrcpus < (4096<<4) ) {
                        CPU_FREE(cpus);
-                       nrcpus <= 1;
+                       nrcpus <<= 1;
                        goto realloc;
                }
                fatal("sched_getaffinity", ERR_SYSCALL, "Can't get CPU info\n");