Return to londocs.pm CVS log | Up to [LON-CAPA] / loncom / interface |
version 1.484.2.68, 2016/11/30 18:05:43 | version 1.484.2.69, 2017/01/24 15:54:02 |
---|---|
Line 5187 sub handler { | Line 5187 sub handler { |
if ($disk_quota == 0) { | if ($disk_quota == 0) { |
$percent = 100.0; | $percent = 100.0; |
} else { | } else { |
$percent = 100*($current_disk_usage/$disk_quota); | $percent = 100*($usage/$disk_quota); |
} | } |
$usage = sprintf("%.2f",$usage); | $usage = sprintf("%.2f",$usage); |
$quota = sprintf("%.2f",$quota); | $quota = sprintf("%.2f",$quota); |