--- loncom/interface/portfolio.pm 2015/06/18 20:19:06 1.256 +++ loncom/interface/portfolio.pm 2017/05/19 23:41:28 1.258 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.256 2015/06/18 20:19:06 musolffc Exp $ +# $Id: portfolio.pm,v 1.258 2017/05/19 23:41:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -203,7 +203,8 @@ sub display_portfolio_usage { .$helpitem .'' .'
' - .&Apache::lonhtmlcommon::display_usage($current_disk_usage,$disk_quota) + .&Apache::lonhtmlcommon::display_usage($current_disk_usage, + $disk_quota,'portfolio') .'
'); } @@ -1072,7 +1073,7 @@ sub build_access_summary { $r->print(&mt('Users: ').$curr_user_list); } elsif ($scope eq 'ip') { my $curr_ips_list = &sort_ips($content->{'ip'}); - $r->print(&mt('IP(s): ').$curr_ips_list); + $r->print(&mt('IP(s):').' '.$curr_ips_list); } else { $r->print(' '); } @@ -2571,7 +2572,7 @@ sub get_quota { } else { $disk_quota = &Apache::loncommon::get_user_quota($env{'user.name'}, $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; }