Changeset 396


Ignore:
Timestamp:
09/24/12 17:43:12 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Track and report count of tinydns records imported sucessfully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tiny-import.pl

    r380 r396  
    127127  my %deleg;
    128128
     129  my $ok = 0;
    129130  while (<FLAT>) {
    130131    if (/^#/ || /^\s*$/) {
     
    135136    s/\s*$//;
    136137    my $recstat = recslurp($_);
     138    $ok++ if $recstat;
    137139    if ($importcfg{rw}) {
    138140      if ($recstat) {
     
    165167
    166168  # .. but we can at least say how many records weren't imported.
    167   print scalar(@deferred)." deferred records in $flatfile\n";
     169  print "$ok OK, ".scalar(@deferred)." deferred records in $flatfile\n";
    168170  $#deferred = -1;
    169171
Note: See TracChangeset for help on using the changeset viewer.