[LON-CAPA-cvs] cvs: loncom /cgi quotacheck.pl

raeburn raeburn at source.lon-capa.org
Fri Jun 13 14:50:07 EDT 2014


raeburn		Fri Jun 13 18:50:07 2014 EDT

  Modified files:              
    /loncom/cgi	quotacheck.pl 
  Log:
  - Disk usage displayed in MB.
  
  
Index: loncom/cgi/quotacheck.pl
diff -u loncom/cgi/quotacheck.pl:1.1 loncom/cgi/quotacheck.pl:1.2
--- loncom/cgi/quotacheck.pl:1.1	Mon Mar 17 02:37:13 2014
+++ loncom/cgi/quotacheck.pl	Fri Jun 13 18:50:07 2014
@@ -6,7 +6,7 @@
 # requested domain, or current server should belong to requested
 # domain.
 #
-# $Id: quotacheck.pl,v 1.1 2014/03/17 02:37:13 raeburn Exp $
+# $Id: quotacheck.pl,v 1.2 2014/06/13 18:50:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -280,6 +280,7 @@
                 foreach my $subdir ('docs','supplemental') {
                     $current_disk_usage += &Apache::lonnet::diskusage($dom,$cnum,"userfiles/$subdir",1);
                 }
+                $current_disk_usage=int($current_disk_usage/1024);
             }
             my $percent;
             if (($quota == 0) || ($quota =~ /[^\d\.]/)) {




More information about the LON-CAPA-cvs mailing list