1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 12:34:17 +00:00

py-i2phosts-checker: probe activated hosts firstly

This commit is contained in:
Hidden Z 2010-11-07 22:02:43 +00:00
parent a0bba86169
commit 036cddad48

View File

@ -68,7 +68,7 @@ else:
sam_addr = '127.0.0.1:7656' sam_addr = '127.0.0.1:7656'
S = samclasses.BaseSession(sam_addr) S = samclasses.BaseSession(sam_addr)
all_hosts = i2phost.objects.all() all_hosts = i2phost.objects.all().order_by('-activated', '-last_seen')
log.info('starting check') log.info('starting check')
for host in all_hosts: for host in all_hosts:
log.debug('%s: testing...', host.name) log.debug('%s: testing...', host.name)