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

raeburn raeburn at source.lon-capa.org
Tue Jan 24 10:52:58 EST 2017


raeburn		Tue Jan 24 15:52:58 2017 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Convert usage to MB when calculating % usage. 
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.618 loncom/interface/londocs.pm:1.619
--- loncom/interface/londocs.pm:1.618	Wed Nov 30 00:27:20 2016
+++ loncom/interface/londocs.pm	Tue Jan 24 15:52:58 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.618 2016/11/30 00:27:20 raeburn Exp $
+# $Id: londocs.pm,v 1.619 2017/01/24 15:52:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5557,7 +5557,7 @@
     if ($disk_quota == 0) {
         $percent = 100.0;
     } else {
-        $percent = 100*($current_disk_usage/$disk_quota);
+        $percent = 100*($usage/$disk_quota);
     }
     $usage = sprintf("%.2f",$usage);
     $quota = sprintf("%.2f",$quota);




More information about the LON-CAPA-cvs mailing list