Skip to content
Snippets Groups Projects
Commit 55ad3802 authored by Andy Yates's avatar Andy Yates
Browse files

Warn after every 2000 parsed records

parent f3bab73d
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ sub process_file { ...@@ -91,7 +91,7 @@ sub process_file {
my $count = 0; my $count = 0;
iterate_file($f, sub { iterate_file($f, sub {
my ($line) = @_; my ($line) = @_;
if($count != 0 && $count % 500 == 0) { if($count != 0 && $count % 2000 == 0) {
printf STDERR "Processed %s records\n", $count; printf STDERR "Processed %s records\n", $count;
} }
chomp $line; chomp $line;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment