]> git.ipfire.org Git - collecty.git/commitdiff
colletcyd: Some code cleanup and commenting.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Nov 2009 08:21:38 +0000 (09:21 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Nov 2009 08:21:38 +0000 (09:21 +0100)
No functional changes.

collectyd

index 3fa6938388df253dcb4afae173ae57d1b44e37fa..95b0c425df9a27758b9a6d6d46c15019e7eedcb4 100755 (executable)
--- a/collectyd
+++ b/collectyd
@@ -5,21 +5,21 @@ import sys
 
 import optparse
 
-from collecty import Collecty
+import collecty
 
-c = Collecty()
+c = collecty.Collecty()
 
 # Parse command line options
 op = optparse.OptionParser(usage="usage: %prog [options] <configfile1> ... <configfileN>")
 op.add_option("-d", "--daemon", action="store_true", default=False,
                help="Run as a daemon in background.")
-
 (options, configfiles) = op.parse_args()
 
 if configfiles:
        for file in configfiles:
                c.read_config(file)
 else:
+       # Load default config file
        c.read_config("/etc/collecty/collecty.conf")
 
 if not c.instances: