From 77f76725888920d10b527db5f291d704f0f5b26d Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 27 Nov 2007 01:10:58 +0100 Subject: Rework usage stats. --- lib/LXRng/Context.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/LXRng/Context.pm') diff --git a/lib/LXRng/Context.pm b/lib/LXRng/Context.pm index dab03e3..3bc7a92 100644 --- a/lib/LXRng/Context.pm +++ b/lib/LXRng/Context.pm @@ -41,6 +41,7 @@ sub new { unless ref($config[0]) eq 'HASH' and exists($config[0]{$tree}); $$self{'config'} = $config[0]{$tree}; + $$self{'config'}{'usage'} ||= $$self{'config'}{'index'}; } if (exists $$self{'params'}{'v'} and $$self{'params'}{'v'}) { -- cgit v1.2.3