/[BackupPC]/trunk/lib/BackupPC/CGI/BurnMedia.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/BackupPC/CGI/BurnMedia.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 257 by dpavlin, Sun Oct 16 17:41:52 2005 UTC revision 258 by dpavlin, Mon Dec 12 20:59:57 2005 UTC
# Line 49  EOF Line 49  EOF
49                          }                          }
50                  }                  }
51    
                 my $total_kb = int($total_size / 1024);  
   
52                  # and now a little magic to check multi-volume increments                  # and now a little magic to check multi-volume increments
53                  my $parts = 1;                  my $parts = 1;
54                  if ($#selected_backup_ids == 0) {                  if ($#selected_backup_ids == 0) {
55                          ($parts) = $dbh->selectrow_array("select parts from backups where id = ?", undef, $selected_backup_ids[0]);                          ($parts) = $dbh->selectrow_array("select parts from backups where id = ?", undef, $selected_backup_ids[0]);
56                  }                  }
57    
58                  if ($total_kb > ($Conf{MaxArchiveSize} * $parts)) {                  if ($total_size > ($Conf{MaxArchiveSize} * $parts)) {
59                          $cont .= eval( q{ ${h2(Error)}});                          $cont .= eval( q{ ${h2(Error)}});
60                          $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.";
61                  } elsif ($total_size == 0) {                  } elsif ($total_size == 0) {
62                          $cont .= eval( q{ ${h2(Error)}});                          $cont .= eval( q{ ${h2(Error)}});
63                          $cont .= "No backups selected.";                          $cont .= "No backups selected.";

Legend:
Removed from v.257  
changed lines
  Added in v.258

  ViewVC Help
Powered by ViewVC 1.1.26