Parcourir la source

Fix percent format in string (Resolves #23)

Markus Hofbauer il y a 3 ans
Parent
commit
b372076718
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      main.py

+ 6 - 6
main.py

@@ -104,17 +104,17 @@ def new_rule(interface):
         if delay_variance != "":
             command += f" {delay_variance}ms"
     if loss != "":
-        command += f" loss {loss}%%"
+        command += f" loss {loss}%"
         if loss_correlation != "":
-            command += f" {loss_correlation}%%"
+            command += f" {loss_correlation}%"
     if duplicate != "":
-        command += f" duplicate {duplicate}%%"
+        command += f" duplicate {duplicate}%"
     if reorder != "":
-        command += f" reorder {reorder}%%"
+        command += f" reorder {reorder}%"
         if reorder_correlation != "":
-            command += f" {reorder_correlation}%%"
+            command += f" {reorder_correlation}%"
     if corrupt != "":
-        command += f" corrupt {corrupt}%%"
+        command += f" corrupt {corrupt}%"
     if limit != "":
         command += f" limit {limit}"
     print(command)