#NEWLINE# def update( self , s ) : #NEWLINE# #INDENT# if s . unavailable : #NEWLINE# #INDENT# self . addstr ( ( s . server_id + 2 ) , 0 , ( '%-2s %-15s %5s %s' % ( s . server_id , s . host [ : 15 ] , s . port , s . mode [ : 1 ] . upper ( ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . addstr ( ( s . server_id + 2 ) , 0 , ( '%-2s %-15s %5s %s %8s %8s %8s %5d %6s %6s %6s' % ( s . server_id , s . host [ : 15 ] , s . port , s . mode [ : 1 ] . upper ( ) , s . outstanding , s . received , s . sent , len ( s . sessions ) , s . min_latency , s . avg_latency , s . max_latency ) ) )