]> git.deb.at Git - deb/packages.git/commitdiff
parse-contents: Update progress approximation
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 8 Oct 2007 02:23:45 +0000 (04:23 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 8 Oct 2007 02:23:45 +0000 (04:23 +0200)
Make them at least partly match reality...

bin/parse-contents

index b8cc8e4158a2b7cffb1566f09d674ac7f560796d..ef5c09ce2b4645395371392f5f3a732dd913cae6 100755 (executable)
@@ -91,7 +91,7 @@ for my $suite (@suites) {
                    my $data = "";
                    my %data = ();
                    chomp;
                    my $data = "";
                    my %data = ();
                    chomp;
-                   print "Doing line ".($./1000)."k (out of approx 1.5M)\n" if $. % 250000 == 0;
+                   print "Doing line ".($./1000)."k (out of approx 2.0M)\n" if $. % 250000 == 0;
                    /^(.+?)\s+(\S+)$/o;
                    my ($file, $value) = ($1, $2);
                    $value =~ s#[^,/]+/##og;
                    /^(.+?)\s+(\S+)$/o;
                    my ($file, $value) = ($1, $2);
                    $value =~ s#[^,/]+/##og;
@@ -162,7 +162,7 @@ for my $suite (@suites) {
     my $lastpath = my $lastcasepath = my $lastfile = "";
     my %matches = ();
     while (<MERGED>) {
     my $lastpath = my $lastcasepath = my $lastfile = "";
     my %matches = ();
     while (<MERGED>) {
-       print "Doing line ".($./1000000)."M (out of approx. 16M)\n"
+       print "Doing line ".($./1000000)."M (out of approx. 20M)\n"
            if $. % 1000000 == 0;
        chomp;
        my @line = split /\0/o, $_;
            if $. % 1000000 == 0;
        chomp;
        my @line = split /\0/o, $_;