}
}
- my $total_kb = int($total_size / 1024);
-
# and now a little magic to check multi-volume increments
my $parts = 1;
if ($#selected_backup_ids == 0) {
($parts) = $dbh->selectrow_array("select parts from backups where id = ?", undef, $selected_backup_ids[0]);
}
- if ($total_kb > ($Conf{MaxArchiveSize} * $parts)) {
+ if ($total_size > ($Conf{MaxArchiveSize} * $parts)) {
$cont .= eval( q{ ${h2(Error)}});
- $cont .= "Selected backups size $total_kb Kb exceed max archive size $Conf{MaxArchiveSize} Kb.";
+ $cont .= "Selected backups size $total_size Kb exceed max archive size $Conf{MaxArchiveSize} Kb.";
} elsif ($total_size == 0) {
$cont .= eval( q{ ${h2(Error)}});
$cont .= "No backups selected.";