From 0fdb7092bc6387ad28e4163bd8304ba69d653551 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Tue, 20 Apr 1999 16:19:44 +0000 Subject: [PATCH] Don't choke on really big URLs. git-svn-id: svn://10.0.0.236/trunk@28241 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/webstats/addstats.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/webtools/webstats/addstats.pl b/mozilla/webtools/webstats/addstats.pl index f12ef0441f8..cf5fe9a0939 100755 --- a/mozilla/webtools/webstats/addstats.pl +++ b/mozilla/webtools/webstats/addstats.pl @@ -52,6 +52,9 @@ sub Flush { my $tick = 0; foreach my $name (keys %counts) { if ($tick++ % 100 == 0) { + if ($tick <= 1) { + print "\nAdding $date "; + } print "+"; } my $id = $ids{$name}; @@ -98,6 +101,9 @@ while () { my ($day,$month,$year,$hours,$mins,$secs,$name) = ($1, $2, $3, $4, $5, $6, $7); + if (length($name) > 250) { + $name = substr($name, 0, 250); + } my $date = "$month $day, $year";