version 1.254, 2014/12/01 22:52:49
|
version 1.254.2.1, 2016/08/07 23:14:30
|
Line 199 sub display_portfolio_usage {
|
Line 199 sub display_portfolio_usage {
|
.$helpitem |
.$helpitem |
.'</div>' |
.'</div>' |
.'<div>' |
.'<div>' |
.&Apache::lonhtmlcommon::display_usage($current_disk_usage,$disk_quota) |
.&Apache::lonhtmlcommon::display_usage($current_disk_usage, |
|
$disk_quota,'portfolio') |
.'</div>'); |
.'</div>'); |
} |
} |
|
|
Line 2567 sub get_quota {
|
Line 2568 sub get_quota {
|
} else { |
} else { |
$disk_quota = &Apache::loncommon::get_user_quota($env{'user.name'}, |
$disk_quota = &Apache::loncommon::get_user_quota($env{'user.name'}, |
$env{'user.domain'}); #expressed in MB |
$env{'user.domain'}); #expressed in MB |
$disk_quota = 1000 * $disk_quota; # convert from MB to kB |
$disk_quota = 1024 * $disk_quota; # convert from MB to kB |
} |
} |
return $disk_quota; |
return $disk_quota; |
} |
} |