style fix + TODO list

This commit is contained in:
Von Random 2016-10-23 02:46:53 +03:00
parent b1d44b5582
commit 24d9df968e
2 changed files with 5 additions and 1 deletions

View file

@ -30,7 +30,7 @@ class PluginThread(threading.Thread):
def main(self): def main(self):
random.shuffle(self.hosts) random.shuffle(self.hosts)
for host in self.hosts: for host in self.hosts:
fping = 'fping -q -c1 -t' + self.timeout + ' ' + host + ' &>/dev/null' fping = 'fping -qct' + self.timeout + ' ' + host + ' &>/dev/null'
response = os.system(fping) response = os.system(fping)
if response == 0: if response == 0:
self.format_status('on') self.format_status('on')

View file

@ -1,4 +1,8 @@
#!/usr/bin/python3 -u #!/usr/bin/python3 -u
# TODO:
# * handle SIGINT properly
# * add documentation / comments
# * add a dummy plugin to use as a starting point
from sys import argv from sys import argv
import argparse import argparse
import configparser import configparser