diff --git a/sched/grep_logs b/sched/grep_logs index aed5d13332..bfeeb80050 100755 --- a/sched/grep_logs +++ b/sched/grep_logs @@ -68,8 +68,9 @@ while () { print "\n\n$ARGV:\n"; } $nlines = 0; + $. = 0; } - my $n = sprintf("%05d", $nlines); + my $n = sprintf("%05d", $.); if ($html) { s%.*debug.*%$&%i;