Skip to content

Commit 6358537

Browse files
Fixed LGTM errors, removed unused variable
Signed-off-by: Vadym Hlushko <[email protected]>
1 parent b784d50 commit 6358537

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

scripts/intfstat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ class Intfstat(object):
175175

176176
for key, cntr in cnstat_new_dict.items():
177177
if key == 'time':
178-
time_gap = cnstat_new_dict.get('time') - cnstat_old_dict.get('time')
179-
time_gap = time_gap.total_seconds()
180178
continue
181179
old_cntr = None
182180
if key in cnstat_old_dict:

scripts/portstat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ class Portstat(object):
397397

398398
for key, cntr in cnstat_new_dict.items():
399399
if key == 'time':
400-
time_gap = cnstat_new_dict.get('time') - cnstat_old_dict.get('time')
401-
time_gap = time_gap.total_seconds()
402400
continue
403401
old_cntr = None
404402
if key in cnstat_old_dict:

0 commit comments

Comments
 (0)