From e19c2219d3cb1ac725a4b372c5002e7fba7e63f7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 28 Jul 2008 11:05:39 +0200 Subject: [PATCH] contrib/collection3: Update `json.cgi' to use the new config parsing function. --- contrib/collection3/bin/json.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/collection3/bin/json.cgi b/contrib/collection3/bin/json.cgi index 0dceb628..c2af61cb 100755 --- a/contrib/collection3/bin/json.cgi +++ b/contrib/collection3/bin/json.cgi @@ -27,13 +27,14 @@ use URI::Escape ('uri_escape'); use Data::Dumper; -use Collectd::Graph::TypeLoader (qw(tl_read_config tl_load_type)); +use Collectd::Graph::Config (qw(gc_read_config)); +use Collectd::Graph::TypeLoader (qw(tl_load_type)); use Collectd::Graph::Common (qw(get_all_hosts get_files_for_host type_to_module_name)); use Collectd::Graph::Type (); our $Debug = param ('debug') ? 1 : 0; -tl_read_config ("$RealBin/../etc/collection3.conf"); +gc_read_config ("$RealBin/../etc/collection.conf"); if ($Debug) { -- 2.30.2