[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionperf/master] Use format string for consistency.
commit 1eea5e10700c76f8e1b37e626eaeaf96c5488150
Author: Philipp Winter <phw@xxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits