From 7f49d93311c11ad054c0a35dfeebe044b7140be9 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 11 Feb 2014 11:36:05 +0100 Subject: [PATCH] bat2nodes: deal with rrd after creating nodes.json --- bat2nodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bat2nodes.py b/bat2nodes.py index 15e0a39..29ab3d8 100755 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -69,10 +69,6 @@ if options['obscure']: scriptdir = os.path.dirname(os.path.realpath(__file__)) -rrd = rrd(scriptdir + "/nodedb/", options['destination_directory'] + "/nodes") -rrd.update_database(db) -rrd.update_images() - m = D3MapBuilder(db) #Write nodes json @@ -82,3 +78,7 @@ nodes_json.close() #Move to destination os.rename(options['destination_directory'] + '/nodes.json.new',options['destination_directory'] + '/nodes.json') + +rrd = rrd(scriptdir + "/nodedb/", options['destination_directory'] + "/nodes") +rrd.update_database(db) +rrd.update_images()