def get_connections_current_ratio(name):
 try:
  result = ((float(get_value((NAME_PREFIX + 'connections_current'))) / float(get_value((NAME_PREFIX + 'connections_available')))) * 100)
 except ZeroDivisionError:
  result = 0
 return result

def get_connections_current_ratio ( name ) : try : result = ( ( float ( get_value ( ( NAME_PREFIX + 'connections_current' ) ) ) / float ( get_value ( ( NAME_PREFIX + 'connections_available' ) ) ) ) * 100 ) except ZeroDivisionError : result = 0 return result
return the percentage of connections used .