From: Florian Forster Date: Mon, 28 Jul 2008 09:05:39 +0000 (+0200) Subject: contrib/collection3: Update `json.cgi' to use the new config parsing function. X-Git-Tag: collectd-4.4.3~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e19c2219d3cb1ac725a4b372c5002e7fba7e63f7;p=collectd.git contrib/collection3: Update `json.cgi' to use the new config parsing function. --- 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) {