Skip to content

Commit

Permalink
Fixed LGTM errors, removed unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Hlushko <[email protected]>
  • Loading branch information
vadymhlushko-mlnx committed Aug 10, 2021
1 parent b784d50 commit 6358537
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scripts/intfstat
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ class Intfstat(object):

for key, cntr in cnstat_new_dict.items():
if key == 'time':
time_gap = cnstat_new_dict.get('time') - cnstat_old_dict.get('time')
time_gap = time_gap.total_seconds()
continue
old_cntr = None
if key in cnstat_old_dict:
Expand Down
2 changes: 0 additions & 2 deletions scripts/portstat
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ class Portstat(object):

for key, cntr in cnstat_new_dict.items():
if key == 'time':
time_gap = cnstat_new_dict.get('time') - cnstat_old_dict.get('time')
time_gap = time_gap.total_seconds()
continue
old_cntr = None
if key in cnstat_old_dict:
Expand Down

0 comments on commit 6358537

Please sign in to comment.