From 24d9df968ecc81c4b19fabe5ed0727659713d0cb Mon Sep 17 00:00:00 2001 From: Von Random Date: Sun, 23 Oct 2016 02:46:53 +0300 Subject: [PATCH] style fix + TODO list --- plugins/ping.py | 2 +- vdstatus | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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') diff --git a/vdstatus b/vdstatus index d79fb7d..448bc9e 100755 --- a/vdstatus +++ b/vdstatus @@ -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