#NEWLINE# def connectionQualityMonitor( self ) : #NEWLINE# #INDENT# "Checks to see if the connection for this factory appears to\n    be delivering stats at a speed close to what we're receiving\n    them at.\n\n    This is open to other measures of connection quality.\n\n    Returns a Bool\n\n    True means that quality is good, OR\n    True means that the total received is less than settings.MIN_RESET_STAT_FLOW\n\n    False means that quality is bad\n\n    " #NEWLINE# destination_sent = float ( instrumentation . prior_stats . get ( self . sent , 0 ) ) #NEWLINE# total_received = float ( instrumentation . prior_stats . get ( 'metricsReceived' , 0 ) ) #NEWLINE# instrumentation . increment ( self . slowConnectionReset , 0 ) #NEWLINE# if ( total_received < settings . MIN_RESET_STAT_FLOW ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( ( destination_sent / total_received ) < settings . MIN_RESET_RATIO ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True