[tor-commits] [onionperf/master] Use format string for consistency.

karsten at torproject.org karsten at torproject.org
Tue Sep 1 20:40:04 UTC 2020


commit 1eea5e10700c76f8e1b37e626eaeaf96c5488150
Author: Philipp Winter <phw at nymity.ch>
Date:   Fri Aug 14 11:29:01 2020 -0700

    Use format string for consistency.
    
    Thanks to Rob for pointing this out.
---
 onionperf/model.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/onionperf/model.py b/onionperf/model.py
index 3bfe35f..d45763e 100644
--- a/onionperf/model.py
+++ b/onionperf/model.py
@@ -118,7 +118,7 @@ class TorperfModel(GeneratableTGenModel):
         else:
             # one-shot mode, i.e., end after configured number of transfers
             g.add_node("end",
-                       count=str(self.config.num_transfers))
+                       count="%d" % self.config.num_transfers)
             # check for end condition after every transfer
             g.add_edge("stream", "end")
             # if end condition not met, pause





More information about the tor-commits mailing list