return $dbh;
}
-sub getUnits() {
+sub getShares {
my @ret;
my $dbh = get_dbh();
push @ret, { 'id' => '', 'share' => '-'}; # dummy any
while ( my $row = $sth->fetchrow_hashref() ) {
+ if ( my $hide = $Conf{SearchHideShare} ) {
+ next if $row->{share} =~ m/$hide/;
+ }
push @ret, $row;
}
return @ret;
# and inc_size < 0 and size > 0 and not inc_deleted
my $all_backup_numbers;
+ # pre-seed with on disk backups
+ $all_backup_numbers->{ $_->{num} }++ foreach $bpc->BackupInfoRead($host);
while( my $row = $sth->fetchrow_hashref ) {
warn "# row ",dump $row;
$all_backup_numbers->{ $row->{num} } =
$row->{inc_deleted} ? 0 :
$row->{size} == 0 ? 0 :
- $row->{inc_size} > 0 ? 0 :
+ $row->{inc_size}!= 0 ? 0 :
$row->{size} > 0 ? 1 :
0;
}