Changeset 8341 in genesis for nodes/get-network-status.py
- Timestamp:
- Aug 13, 2010, 6:13:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/get-network-status.py
r8340 r8341 318 318 new_status = yaml.load(stream) 319 319 for item in ['node', 'link']: 320 for key, value in status[item].iteritems():320 for key, value in new_status[item].iteritems(): 321 321 if not status[item].has_key(key): 322 322 # New items always welcome 323 323 status[item][key] = value 324 print "## [%s][% ] is new (%s)" % (item, key, value)324 print "## [%s][%s] is new (%s)" % (item, key, value) 325 325 elif value < status[item][key]: 326 326 # Better values always welcome 327 327 status[item][key] = value 328 print "## [%s][% ] is better (%s)" % (item, key, value)328 print "## [%s][%s] is better (%s)" % (item, key, value) 329 329 except IOError, e: 330 330 print "## ERROR '%s'" % e
Note:
See TracChangeset
for help on using the changeset viewer.