From 7f39d6d963aad4e8bd343dd3d7530cab2541ced1 Mon Sep 17 00:00:00 2001 From: Rinat Khaliullin Date: Wed, 18 May 2022 15:59:51 +0300 Subject: [PATCH] Added randomness --- plb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plb.py b/plb.py index a056843..6e5c3d9 100644 --- a/plb.py +++ b/plb.py @@ -417,6 +417,7 @@ def main(): need_to_balance = need_to_balance_checking(cluster) logger.info(f'Need to balance: {need_to_balance}') if need_to_balance: + iteration = 0 balance_cl = temporary_dict(cluster) sorted_variants = calculating(balance_cl, cluster) if sorted_variants: