summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-08-24 21:10:23 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-08-24 21:10:23 +0200
commitf32b431c10b7699496ff2be9c46b29dd112d9259 (patch)
tree0d7be8a79f0b9fd7c0cf54e8e53225bc79a46d52 /src
parentadded argparser for RRD importer (diff)
cleaned importer
Diffstat (limited to 'src')
-rwxr-xr-xsrc/daq/flumotion-rrd/flumotion-rrd.py4
1 files changed, 2 insertions, 2 deletions
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')