Skip to content

Commit

Permalink
Testing Chart error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jul 25, 2024
1 parent 1dd8080 commit bd20ffb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jtop/gui/lib/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=
for idy, color_set in enumerate(list_element):
idx_name = Chart.OFFSET_COLOR_CHART + self._color_obj_counter + (len(self.color_chart) - idx - 1) * color_step + idy
second_color = self.color_chart[color_set[1]] if color_set[1] < len(self.color_chart) else curses.COLOR_BLACK
logger.info(f"-------------------------------------")
logger.info(f"{Chart.OFFSET_COLOR_CHART}")
logger.info(f"{self._color_obj_counter}")
logger.info(f"{(len(self.color_chart) - idx - 1)}")
logger.info(f"{len(self.color_chart)}")
logger.info(f"{color_step}")
logger.info(f"Idx_name: {idx_name}")
curses.init_pair(idx_name, self.color_chart[color_set[0]], second_color)
except curses.error:
Expand Down

0 comments on commit bd20ffb

Please sign in to comment.