@@ -118,7 +118,7 @@ def compact_power(stdscr, pos_y, pos_x, width, height, jetson):
118
118
oc_event_cnt = jetson .power ['oc_events' ]['count' ]
119
119
is_throttling = jetson .power ['oc_events' ]['is_throttling' ]
120
120
# Plot OC_EVENT_CNT with color based on throttling status
121
- color = NColors .red () if is_throttling else (NColors .yellow () if oc_event_cnt > 0 else NColors .green ())
121
+ color = NColors .red () if is_throttling else (NColors .yellow () if oc_event_cnt > 0 else NColors .green ())
122
122
stdscr .addstr (pos_y + len_power + 3 , center_x - column_power - 5 , "OC EVENT COUNT: " , curses .A_BOLD )
123
123
stdscr .addstr (pos_y + len_power + 3 , center_x + 2 , str (oc_event_cnt ), curses .A_BOLD | color )
124
124
return len (power ) + 3
@@ -398,11 +398,9 @@ def control_power(self, pos_y, pos_x, key, mouse):
398
398
oc_event_cnt = self .jetson .power ['oc_events' ]['count' ]
399
399
is_throttling = self .jetson .power ['oc_events' ]['is_throttling' ]
400
400
# Plot OC_EVENT_CNT with color based on throttling status
401
- color = NColors .red () if is_throttling else (NColors .yellow () if oc_event_cnt > 0 else NColors .green ())
401
+ color = NColors .red () if is_throttling else (NColors .yellow () if oc_event_cnt > 0 else NColors .green ())
402
402
self .stdscr .addstr (pos_y_table + len_power + 2 , pos_x , "OC EVENT COUNT: " , curses .A_BOLD )
403
- self .stdscr .addstr (pos_y_table + len_power + 2 , pos_x + 16 , str (oc_event_cnt ), curses .A_BOLD | color )
404
-
405
-
403
+ self .stdscr .addstr (pos_y_table + len_power + 2 , pos_x + 16 , str (oc_event_cnt ), curses .A_BOLD | color )
406
404
407
405
def draw (self , key , mouse ):
408
406
# Screen size
0 commit comments