diff options
author | Von Random <von@vdrandom.org> | 2016-10-23 02:46:53 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2016-10-23 02:46:53 +0300 |
commit | 24d9df968ecc81c4b19fabe5ed0727659713d0cb (patch) | |
tree | d3b591970238e2d7fcc99deb3b763fbf291f0334 | |
parent | b1d44b5582050c3cb5b6b6c3428e7ac2b5176489 (diff) |
style fix + TODO list
-rw-r--r-- | plugins/ping.py | 2 | ||||
-rwxr-xr-x | vdstatus | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/ping.py b/plugins/ping.py index 8de3784..f2b9854 100644 --- a/plugins/ping.py +++ b/plugins/ping.py @@ -30,7 +30,7 @@ class PluginThread(threading.Thread): def main(self): random.shuffle(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) if response == 0: self.format_status('on') @@ -1,4 +1,8 @@ #!/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 import argparse import configparser |