Skip to content

Commit c4da80b

Browse files
committed
Testing Chart error
1 parent ff4d2ae commit c4da80b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: jtop/core/memory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def read_fstab():
126126
def read_emc(root_path):
127127
emc = {}
128128
# Initialize emc['cur'] to avoid a crash when starting this service
129-
# TEST emc['cur'] = 1
129+
emc['cur'] = 1
130130
if os.path.isdir(root_path + "/debug/bpmp/debug/clk/emc"):
131131
path = root_path + "/debug/bpmp/debug/clk/emc"
132132
# Check if access to this file

Diff for: jtop/gui/lib/chart.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
import curses
2222
from collections import deque
2323
from .common import check_curses
24-
24+
import logging
25+
# Create logger
26+
logger = logging.getLogger(__name__)
2527

2628
class Chart(object):
2729

@@ -73,6 +75,7 @@ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=
7375
for idy, color_set in enumerate(list_element):
7476
idx_name = Chart.OFFSET_COLOR_CHART + self._color_obj_counter + (len(self.color_chart) - idx - 1) * color_step + idy
7577
second_color = self.color_chart[color_set[1]] if color_set[1] < len(self.color_chart) else curses.COLOR_BLACK
78+
logger.info(f"Idx_name: {idx_name}")
7679
curses.init_pair(idx_name, self.color_chart[color_set[0]], second_color)
7780
except curses.error:
7881
curses.use_default_colors()

0 commit comments

Comments
 (0)