aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/packet_analyzer.py
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbench/packet_analyzer.py')
-rw-r--r--nfvbench/packet_analyzer.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/nfvbench/packet_analyzer.py b/nfvbench/packet_analyzer.py
index c01675b..5d72bc9 100644
--- a/nfvbench/packet_analyzer.py
+++ b/nfvbench/packet_analyzer.py
@@ -47,8 +47,8 @@ class PacketAnalyzer(object):
transmitted_packets = self.chain[0]['packet_count']
for (index, path_data) in enumerate(self.chain):
- LOG.info('[Packet Analyze] Interface: %s' % (path_data['interface']))
- LOG.info('[Packet Analyze] > Count: %d' % (path_data['packet_count']))
+ LOG.info('[Packet Analyze] Interface: %s', path_data['interface'])
+ LOG.info('[Packet Analyze] > Count: %d', path_data['packet_count'])
if index:
if transmitted_packets:
@@ -56,9 +56,9 @@ class PacketAnalyzer(object):
100.0 * path_data['packet_drop_count'] / transmitted_packets
else:
self.chain[index]['packet_drop_percentage'] = float('nan')
- LOG.info('[Packet Analyze] > Packet Drops: %d' %
- (path_data['packet_drop_count']))
- LOG.info('[Packet Analyze] > Percentage: %s' %
- (path_data['packet_drop_percentage']))
+ LOG.info('[Packet Analyze] > Packet Drops: %d',
+ path_data['packet_drop_count'])
+ LOG.info('[Packet Analyze] > Percentage: %s',
+ path_data['packet_drop_percentage'])
return self.chain