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

raeburn raeburn at source.lon-capa.org
Sun Aug 7 19:14:31 EDT 2016


raeburn		Sun Aug  7 23:14:31 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	portfolio.pm 
  Log:
  - For 2.11
    - Backport 1.257
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.254 loncom/interface/portfolio.pm:1.254.2.1
--- loncom/interface/portfolio.pm:1.254	Mon Dec  1 22:52:49 2014
+++ loncom/interface/portfolio.pm	Sun Aug  7 23:14:30 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # portfolio browser
 #
-# $Id: portfolio.pm,v 1.254 2014/12/01 22:52:49 raeburn Exp $
+# $Id: portfolio.pm,v 1.254.2.1 2016/08/07 23:14:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -199,7 +199,8 @@
                     .$helpitem
                     .'</div>'
                     .'<div>'
-                    .&Apache::lonhtmlcommon::display_usage($current_disk_usage,$disk_quota)
+                    .&Apache::lonhtmlcommon::display_usage($current_disk_usage,
+                                                           $disk_quota,'portfolio')
                     .'</div>');
 }
 
@@ -2567,7 +2568,7 @@
     } else {
         $disk_quota = &Apache::loncommon::get_user_quota($env{'user.name'},
                                     $env{'user.domain'}); #expressed in MB
-        $disk_quota = 1000 * $disk_quota; # convert from MB to kB
+        $disk_quota = 1024 * $disk_quota; # convert from MB to kB
     }
     return $disk_quota;
 }




More information about the LON-CAPA-cvs mailing list