[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom /cgi quotacheck.pl
From: raeburn via LON-CAPA-cvs <lon-capa-cvs () mail ! lon-capa ! org>
Date: 2021-09-03 21:37:38
Message-ID: cvsraeburn1630705058 () cvsserver
[Download RAW message or body]
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\.]/)) {
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic