Include CD number in the fill level markers.
This commit is contained in:
parent
758e9dc0bb
commit
13b0587c4d
|
@ -24,13 +24,13 @@ open(LOG, $logfile) || die "Unable to open $logfile";
|
||||||
my $text = Text::Format->new(leftMargin => 16,
|
my $text = Text::Format->new(leftMargin => 16,
|
||||||
rightMargin => 0,
|
rightMargin => 0,
|
||||||
firstIndent => 0);
|
firstIndent => 0);
|
||||||
my $curcd = 1;
|
|
||||||
my $markerstep = $opts{m} || 0;
|
my $markerstep = $opts{m} || 0;
|
||||||
my $pkg;
|
my $pkg;
|
||||||
my @order;
|
my @order;
|
||||||
my %cdsize;
|
my %cdsize;
|
||||||
my %size;
|
my %size;
|
||||||
my %deps;
|
my %deps;
|
||||||
|
my $curcd = 1;
|
||||||
my $curcdsize;
|
my $curcdsize;
|
||||||
my $cursize;
|
my $cursize;
|
||||||
my @excluded;
|
my @excluded;
|
||||||
|
@ -54,7 +54,7 @@ while (<LOG>) {
|
||||||
$cursize = $2;
|
$cursize = $2;
|
||||||
if ($markerstep) {
|
if ($markerstep) {
|
||||||
while ($curcdsize > $nextmarker) {
|
while ($curcdsize > $nextmarker) {
|
||||||
my $txt = sprintf("<=============== CD fill level passing %d KiB",
|
my $txt = sprintf("<=============== CD $curcd fill level passing %d KiB",
|
||||||
$nextmarker / 1024);
|
$nextmarker / 1024);
|
||||||
$size{$txt} = 0;
|
$size{$txt} = 0;
|
||||||
$cdsize{$txt} = $curcdsize;
|
$cdsize{$txt} = $curcdsize;
|
||||||
|
@ -72,6 +72,7 @@ while (<LOG>) {
|
||||||
}
|
}
|
||||||
if (/Limit for CD (.+) is/) {
|
if (/Limit for CD (.+) is/) {
|
||||||
last if $cdlimit == $1;
|
last if $cdlimit == $1;
|
||||||
|
$curcd = $1;
|
||||||
my $txt = "<=============== start of CD $1";
|
my $txt = "<=============== start of CD $1";
|
||||||
$size{$txt} = 0;
|
$size{$txt} = 0;
|
||||||
$cdsize{$txt} = 0;
|
$cdsize{$txt} = 0;
|
||||||
|
|
Loading…
Reference in New Issue