From 9126e14f548c858ddaf3067463996f78ec16b1a4 Mon Sep 17 00:00:00 2001 From: Tobias Becker Date: Wed, 29 Sep 2004 21:13:32 +0000 Subject: [PATCH] Two small changes for pp_rate: ignore leading white space at first area name of A: line and remove progress notice after unknown area name search. --- isdnlog/tools/dest/pp_rate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isdnlog/tools/dest/pp_rate b/isdnlog/tools/dest/pp_rate index 5636eee5..c8c5d017 100755 --- a/isdnlog/tools/dest/pp_rate +++ b/isdnlog/tools/dest/pp_rate @@ -157,6 +157,7 @@ ragain: $acmt = '' unless ( $acmt =~/#\s*\S/ ); # only non-empty } $a =~ s/[,\s]+$//; + $a =~ s/^\s+//; @a=split(/\s*,\s*/, $a); foreach $c (@a) { next if ($c eq ''); @@ -190,6 +191,9 @@ again: last if($m==0); } } + if (length($tf) < 16) { # erase "searching ..." + print "\r'$c' "; + } print "\r'$c'"; } if ($tf && $m<=1) {