Skip to content

Commit

Permalink
pep 8
Browse files Browse the repository at this point in the history
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
  • Loading branch information
vdahiya12 committed Sep 10, 2024
1 parent 486992e commit 1a79116
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions show/interfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,11 @@ def fetch_fec_histogram(port_oid_map, target_port):
asic_db_kvp = counter_db.get_all(counter_db.COUNTERS_DB, 'COUNTERS:{}'.format(port_oid))

if asic_db_kvp is not None:
fec_errors = {f'BIN{i}': asic_db_kvp.get
(f'SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S{i}', '0') for i in range(16)}

fec_errors = {
f'BIN{i}': asic_db_kvp.get(f'SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S{i}', '0')
for i in range(16)
}

# Prepare the data for tabulation
table_data = [(bin_label, error_value) for bin_label, error_value in fec_errors.items()]
Expand Down

0 comments on commit 1a79116

Please sign in to comment.