@@ -179,7 +179,7 @@ def loop(screen, bpf, peers):
179
179
info_panel = panel .new_panel (win )
180
180
info_panel .hide ()
181
181
182
- ROWS_AVALIABLE_FOR_LIST = curses .LINES - 5
182
+ ROWS_AVAILABLE_FOR_LIST = curses .LINES - 5
183
183
scroll = 0
184
184
185
185
while True :
@@ -191,7 +191,7 @@ def loop(screen, bpf, peers):
191
191
if (ch == curses .KEY_DOWN or ch == ord ("j" )) and cur_list_pos < len (
192
192
peers .keys ()) - 1 and info_panel .hidden ():
193
193
cur_list_pos += 1
194
- if cur_list_pos >= ROWS_AVALIABLE_FOR_LIST :
194
+ if cur_list_pos >= ROWS_AVAILABLE_FOR_LIST :
195
195
scroll += 1
196
196
if (ch == curses .KEY_UP or ch == ord ("k" )) and cur_list_pos > 0 and info_panel .hidden ():
197
197
cur_list_pos -= 1
@@ -203,14 +203,14 @@ def loop(screen, bpf, peers):
203
203
else :
204
204
info_panel .hide ()
205
205
screen .erase ()
206
- render (screen , peers , cur_list_pos , scroll , ROWS_AVALIABLE_FOR_LIST , info_panel )
206
+ render (screen , peers , cur_list_pos , scroll , ROWS_AVAILABLE_FOR_LIST , info_panel )
207
207
curses .panel .update_panels ()
208
208
screen .refresh ()
209
209
except KeyboardInterrupt :
210
210
exit ()
211
211
212
212
213
- def render (screen , peers , cur_list_pos , scroll , ROWS_AVALIABLE_FOR_LIST , info_panel ):
213
+ def render (screen , peers , cur_list_pos , scroll , ROWS_AVAILABLE_FOR_LIST , info_panel ):
214
214
""" renders the list of peers and details panel
215
215
216
216
This code is unrelated to USDT, BCC and BPF.
@@ -223,7 +223,7 @@ def render(screen, peers, cur_list_pos, scroll, ROWS_AVALIABLE_FOR_LIST, info_pa
223
223
1 , 0 , (" Navigate with UP/DOWN or J/K and select a peer with ENTER or SPACE to see individual P2P messages" ), curses .A_NORMAL )
224
224
screen .addstr (3 , 0 ,
225
225
header_format % ("PEER" , "OUTBOUND" , "INBOUND" , "TYPE" , "ADDR" ), curses .A_BOLD | curses .A_UNDERLINE )
226
- peer_list = sorted (peers .keys ())[scroll :ROWS_AVALIABLE_FOR_LIST + scroll ]
226
+ peer_list = sorted (peers .keys ())[scroll :ROWS_AVAILABLE_FOR_LIST + scroll ]
227
227
for i , peer_id in enumerate (peer_list ):
228
228
peer = peers [peer_id ]
229
229
screen .addstr (i + 4 , 0 ,
0 commit comments