- Timestamp:
- Mar 6, 2012, 2:12:00 PM (13 years ago)
- Location:
- tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/get-link-traffic.py
r10040 r10041 154 154 store = {'snmp' : dict(m_snmp), 'traffic' : dict(m_traffic), 'uptime' : dict(m_uptime)} 155 155 yaml.dump(store,open(DATASTORE,'w')) 156 logger.info("Stored data at %s" % DATASTORE) 156 157 157 158 -
tools/gformat.py
r9971 r10041 67 67 def get_proxylist(): 68 68 """Get all available proxies proxyX sorting based on X number""" 69 os.chdir(NODE_DIR) 70 proxylist = sorted(glob.glob("proxy*"), 69 proxylist = sorted([os.path.basename(x) for x in glob.glob("%s/proxy*" % NODE_DIR)], 71 70 key=lambda name: int(''.join([c for c in name if c in string.digits])), 72 71 cmp=lambda x,y: x - y) … … 82 81 def get_nodelist(): 83 82 """ Get all available nodes - sorted """ 84 os.chdir(NODE_DIR) 85 nodelist = sorted(glob.glob("CNode*")) 83 nodelist = sorted([os.path.basename(x) for x in glob.glob("%s/CNode*" % NODE_DIR)]) 86 84 return nodelist 87 85
Note:
See TracChangeset
for help on using the changeset viewer.