@@ -179,7 +179,7 @@ def loop(screen, bpf, peers):
179179    info_panel  =  panel .new_panel (win )
180180    info_panel .hide ()
181181
182-     ROWS_AVALIABLE_FOR_LIST  =  curses .LINES  -  5 
182+     ROWS_AVAILABLE_FOR_LIST  =  curses .LINES  -  5 
183183    scroll  =  0 
184184
185185    while  True :
@@ -191,7 +191,7 @@ def loop(screen, bpf, peers):
191191            if  (ch  ==  curses .KEY_DOWN  or  ch  ==  ord ("j" )) and  cur_list_pos  <  len (
192192                    peers .keys ()) - 1  and  info_panel .hidden ():
193193                cur_list_pos  +=  1 
194-                 if  cur_list_pos  >=  ROWS_AVALIABLE_FOR_LIST :
194+                 if  cur_list_pos  >=  ROWS_AVAILABLE_FOR_LIST :
195195                    scroll  +=  1 
196196            if  (ch  ==  curses .KEY_UP  or  ch  ==  ord ("k" )) and  cur_list_pos  >  0  and  info_panel .hidden ():
197197                cur_list_pos  -=  1 
@@ -203,14 +203,14 @@ def loop(screen, bpf, peers):
203203                else :
204204                    info_panel .hide ()
205205            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 )
207207            curses .panel .update_panels ()
208208            screen .refresh ()
209209        except  KeyboardInterrupt :
210210            exit ()
211211
212212
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 ):
214214    """ renders the list of peers and details panel 
215215
216216    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
223223        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 )
224224    screen .addstr (3 , 0 ,
225225                  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 ]
227227    for  i , peer_id  in  enumerate (peer_list ):
228228        peer  =  peers [peer_id ]
229229        screen .addstr (i  +  4 , 0 ,
0 commit comments