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/Index/PgBatch.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/LXRng/Index/PgBatch.pm') diff --git a/lib/LXRng/Index/PgBatch.pm b/lib/LXRng/Index/PgBatch.pm index 19c9fa9..40654d2 100644 --- a/lib/LXRng/Index/PgBatch.pm +++ b/lib/LXRng/Index/PgBatch.pm @@ -146,9 +146,10 @@ sub _prime_symbol_cache { } sub _add_usage { - my ($self, $file_id, $line, $symbol_id) = @_; + my ($self, $file_id, $symbol_id, $lines) = @_; - push(@{$self->_cache('usage')}, "$file_id\t$symbol_id\t$line\n"); + push(@{$self->_cache('usage')}, + "$file_id\t$symbol_id\t\{".join(",", @$lines)."}\n"); return 1; } -- cgit v1.2.3