From f32b431c10b7699496ff2be9c46b29dd112d9259 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 24 Aug 2014 21:10:23 +0200 Subject: cleaned importer --- src/daq/flumotion-rrd/flumotion-rrd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daq/flumotion-rrd/flumotion-rrd.py') diff --git a/src/daq/flumotion-rrd/flumotion-rrd.py b/src/daq/flumotion-rrd/flumotion-rrd.py index 54a0c97..a661e31 100755 --- a/src/daq/flumotion-rrd/flumotion-rrd.py +++ b/src/daq/flumotion-rrd/flumotion-rrd.py @@ -32,11 +32,9 @@ # from twisted.internet import protocol, reactor -from twisted.python import log from socket import error as socket_error import simplejson as json import datetime -import argparse _MAX_PACKET_SIZE = 8192 # in bytes @@ -126,6 +124,8 @@ class FlumotionRRD(): if __name__ == '__main__': + import argparse + parser = argparse.ArgumentParser(description='SFive Flumotion RRD Importer') parser.add_argument('--socket', '-s', dest='socket', required=True, help='the path to the data socket of the local SFive hub') -- cgit v1.2.3