Explorar el Código

Fix random strategy

Serj Kalichev hace 10 años
padre
commit
1156bd1ae2
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      balance.c

+ 3 - 2
balance.c

@@ -327,9 +327,10 @@ int choose_irqs_to_move(lub_list_t *cpus, lub_list_t *balance_irqs,
 				irq_to_move = irq;
 			}
 		} else if (strategy == BIRQ_CHOOSE_RND) {
-			if (current == choose)
+			if (current == choose) {
 				irq_to_move = irq;
-			break;
+				break;
+			}
 		}
 		current++;
 	}