Changeset 10192 in genesis for tools


Ignore:
Timestamp:
Mar 17, 2012, 12:21:19 PM (13 years ago)
Author:
richardvm
Message:

added hybrid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10190 r10192  
    8282  return proxylist
    8383
     84def get_hybridlist():
     85  """Get all available proxies hybridX sorting based on X number"""
     86  hybridlist = sorted([os.path.basename(x) for x in glob.glob("%s/proxy*" % NODE_DIR)],
     87                key=lambda name: int(''.join([c for c in name if c in string.digits])),
     88                cmp=lambda x,y: x - y)
     89  return hybridlist
    8490
    8591
     
    96102def get_hostlist():
    97103  """ Combined hosts and proxy list"""
    98   return get_nodelist() + get_proxylist()
     104  return get_nodelist() + get_proxylist() + get_hybridlist()
    99105
    100106def angle_between_points(lat1,lat2,long1,long2):
Note: See TracChangeset for help on using the changeset viewer.