Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
Add Test Print
Browse files Browse the repository at this point in the history
  • Loading branch information
gshmu committed Jun 4, 2014
1 parent 0f6cbad commit ddddfcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions set_goagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def run(self):
try:
lock.acquire()
ip_list.append((loss_percent, avg_time, self.ip_address, host_name))
#test enable. 测试用,我还是喜欢屏蔽掉,下边会输出排序好的。
print '%-6s%-4s%-16s%s' % (loss_percent, avg_time, self.ip_address, host_name)
except:
pass
finally:
Expand All @@ -73,6 +75,7 @@ def list_ping(_set):
ping_thread = Ping('%s.%d' % (_[0], i))
ping_thread.start()

# once run threading.activeCount()=2 !!!maybe itself
print threading.activeCount()-2, 'threading working...'
while threading.activeCount() > 2:
pass
Expand Down

0 comments on commit ddddfcc

Please sign in to comment.