[LON-CAPA-cvs] cvs: loncom /interface portfolio.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 26 Aug 2005 21:47:27 -0000


albertel		Fri Aug 26 17:47:27 2005 EDT

  Modified files:              
    /loncom/interface	portfolio.pm 
  Log:
  - filesize already was divided by 1000
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.86 loncom/interface/portfolio.pm:1.87
--- loncom/interface/portfolio.pm:1.86	Fri Aug 26 15:40:38 2005
+++ loncom/interface/portfolio.pm	Fri Aug 26 17:47:25 2005
@@ -418,7 +418,7 @@
         }
     }
     my $current_disk_usage = &Apache::lonnet::diskusage($env{'user.domain'}, $env{'user.name'},$portfolio_root);
-    if ((($current_disk_usage) + $filesize/1000) > $disk_quota){
+    if (($current_disk_usage + $filesize) > $disk_quota){
         $r->print('<font color="red">Unable to upload <strong>'.$fname.' (size = '.$filesize.' kilobytes)</strong>. Disk quota will be exceeded.'.
                   '<br />Disk quota is '.$disk_quota.' kilobytes. Your current disk usage is '.$current_disk_usage.' kilobytes.');
         $r->print(&done('Back'));