git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8183
91ce42f0-d328-0410-95d8-
f526ca767f89
dstat=0
perl -ne '
-sub check_block {
+sub check_block {
return unless ($last_block || $last_bsr_block);
$nb = $last_block - $last_bsr_block;
if ($nb > 65000) {
}
}
sub print_stat {
+ if ($last_bsr_addr) {
+ $last_bsr_block = $last_bsr_addr & 0xFFFFFFFF;
+ }
print "$last_job\nlast_bsr_block=$last_bsr_block last_block_read=$last_block\n";
check_block();
$last_bsr_block = $last_block=0;
}
$last_job=$1 if /dircmd.c.+(JobId=\d+ job=\S+)/;
+$last_bsr_addr=$1 if /fd_cmds.c:.+VolAddr=\d+-(\d+)/;
$last_bsr_block=$1 if /fd_cmds.c:.+VolBlock=\d+-(\d+)/;
$last_block=$1 if /read_record.c.+file:block=\d+:(\d+)/;
END {