82 |
|
|
83 |
while (my $row = $sth->fetchrow_hashref) { |
while (my $row = $sth->fetchrow_hashref) { |
84 |
my $tar_file = BackupPC::SearchLib::getGzipName($row->{'host'}, $row->{'share'}, $row->{'num'}); |
my $tar_file = BackupPC::SearchLib::getGzipName($row->{'host'}, $row->{'share'}, $row->{'num'}); |
85 |
print curr_time, sprintf(" %s:%s %-3d ", $row->{'host'}, $row->{'share'}, $row->{'num'}), " -> $tar_file "; |
print curr_time, " ", $row->{'host'}, ":", $row->{'share'}, " #", $row->{'num'}, " -> $tar_file"; |
86 |
|
|
87 |
my $t = time(); |
my $t = time(); |
88 |
|
|
93 |
|
|
94 |
my $size = (stat( "$tar_dir/$tar_file" ))[7]; |
my $size = (stat( "$tar_dir/$tar_file" ))[7]; |
95 |
|
|
96 |
print " dur: ",fmt_time(time() - $t)," $size bytes"; |
printf(" %1.2f MB, dur: %s", ($size / 1024 / 1024), fmt_time(time() - $t)); |
97 |
|
|
98 |
if ($size > 45) { |
if ($size > 45) { |
99 |
$sth_inc_size->execute($size, $row->{'backup_id'}); |
$sth_inc_size->execute($size, $row->{'backup_id'}); |