def get_globalLock_ratio(name):
 try:
  result = ((get_rate((NAME_PREFIX + 'globalLock_lockTime')) / get_rate((NAME_PREFIX + 'globalLock_totalTime'))) * 100)
 except ZeroDivisionError:
  result = 0
 return result

def get_globalLock_ratio ( name ) : try : result = ( ( get_rate ( ( NAME_PREFIX + 'globalLock_lockTime' ) ) / get_rate ( ( NAME_PREFIX + 'globalLock_totalTime' ) ) ) * 100 ) except ZeroDivisionError : result = 0 return result
return the global lock ratio .