From 124ecd5d59869bad3a4f5f53f91f5b9c99051512 Mon Sep 17 00:00:00 2001 From: Kerim Gokarslan Date: Fri, 13 Oct 2017 17:29:58 -0700 Subject: NFVBENCH-40 Add pylint to tox Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan --- nfvbench/packet_analyzer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nfvbench/packet_analyzer.py') 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 -- cgit 1.2.3-korg