Przeglądaj źródła

fix loading bar length

Eren Yilmaz 6 lat temu
rodzic
commit
01dbd1c2d7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      run_client.py

+ 1 - 1
run_client.py

@@ -13,7 +13,7 @@ def fake_loading_bar(msg, duration=5.):
     msg += ': '
     print(msg, end='')
     sys.stdout.flush()
-    bar_length = 80 - len(msg)
+    bar_length = 79 - len(msg)
     for _ in range(bar_length):
         if not debug:
             time.sleep(duration / bar_length)