}
}
delete $per_minute_info{query};
+ map {s/^\d{4}-//; s/^\d{2}-\d{2} // if ($_ !~ /(00:00|12:00)/); } @labels;
push(@graph_values, [ @labels ] ); @labels = ();
push(@graph_values, [ @data1 ] ); @data1 = ();
push(@graph_values, [ @data2 ] ); @data2 = ();
push(@data2, sprintf("%.2f", (($per_hour_info{$tm}{$h}{duration} || 0) / ($per_hour_info{$tm}{$h}{count} || 1)) /1000));
}
}
+ map {s/^\d{4}-//; s/^\d{2}-\d{2} // if ($_ !~ /(00:00|12:00)/); } @labels;
push(@graph_values, [ @labels ] ); @labels = ();
push(@graph_values, [ @data1 ] ); @data1 = ();
push(@graph_values, [ @data2 ] ); @data2 = ();
push(@data1, $checkpoint_info{chronos}{$tm}{$h}{wbuffer} || 0);
}
}
+ map {s/^\d{4}-//; s/^\d{2}-\d{2} // if ($_ !~ /(00:00|12:00)/); } @labels;
push(@graph_values, [ @labels ] ); @labels = ();
push(@graph_values, [ @data1 ] ); @data1 = ();
&create_graph_twoaxes('checkpointbuffers', 'Checkpoint write buffers', 'Hours', 'Buffers');
push(@data2, sprintf("%.2f", (($per_hour_info{$tm}{$h}{'SELECT'}{duration} || 0) / ($per_hour_info{$tm}{$h}{'SELECT'}{count} || 1)) /1000));
}
}
+ map {s/^\d{4}-//; s/^\d{2}-\d{2} // if ($_ !~ /(00:00|12:00)/); } @labels;
push(@graph_values, [ @labels ] ); @labels = ();
push(@graph_values, [ @data1 ] ); @data1 = ();
push(@graph_values, [ @data2 ] ); @data2 = ();
push(@data4, sprintf("%.2f", (($wduration || 0) / ($wcount || 1)) /1000));
}
}
+ map {s/^\d{4}-//; s/^\d{2}-\d{2} // if ($_ !~ /(00:00|12:00)/); } @labels;
push(@graph_values, [ @labels ] ); @labels = ();
push(@graph_values, [ @data1 ] ); @data1 = ();
push(@graph_values, [ @data2 ] ); @data2 = ();
my ($filename, $title, $x_label, $y_label, @legends) = @_;
use GD::Graph::lines;
- my $graf = new GD::Graph::lines(800, 400);
+ my $graf = new GD::Graph::lines(1000, 350);
$graf->set(
x_label => $x_label || '',
y_label => $y_label || '',
push(@use_axis, '2');
}
}
- my $graf = new GD::Graph::lines(800, 400);
+ my $graf = new GD::Graph::lines(1000, 350);
$graf->set(
x_label => $x_label || '',
y1_label => $y1_label || '',
my ( $got, $total, $width, $char ) = @_;
$width ||= 25; $char ||= '=';
my $num_width = length $total;
- sprintf "|%-${width}s| Parsed %${num_width}s bytes of %s (%.2f%%)\r",
+ sprintf "[%-${width}s] Parsed %${num_width}s bytes of %s (%.2f%%)\r",
$char x (($width-1)*$got/$total). '>',
$got, $total, 100*$got/+$total;
}