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

raeburn raeburn at source.lon-capa.org
Fri Sep 3 17:37:38 EDT 2021


raeburn		Fri Sep  3 21:37:38 2021 EDT

  Modified files:              
    /loncom/cgi	quotacheck.pl 
  Log:
  - When quotacheck is run on an access node totals from lonnet::diskusage()
    need to be converted from KB to MB. 
  
  
Index: loncom/cgi/quotacheck.pl
diff -u loncom/cgi/quotacheck.pl:1.8 loncom/cgi/quotacheck.pl:1.9
--- loncom/cgi/quotacheck.pl:1.8	Mon May  4 15:13:57 2015
+++ loncom/cgi/quotacheck.pl	Fri Sep  3 21:37:38 2021
@@ -6,7 +6,7 @@
 # requested domain, or current server should belong to requested
 # domain.
 #
-# $Id: quotacheck.pl,v 1.8 2015/05/04 15:13:57 raeburn Exp $
+# $Id: quotacheck.pl,v 1.9 2021/09/03 21:37:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -421,6 +421,7 @@
                 foreach my $subdir ('docs','supplemental') {
                     $current_disk_usage += &Apache::lonnet::diskusage($dom,$cnum,"userfiles/$subdir",1);
                 }
+                $current_disk_usage = $current_disk_usage/1024;
             }
             my $percent;
             if (($quota == 0) || ($quota =~ /[^\d\.]/)) {




More information about the LON-CAPA-cvs mailing list