diff options
-rwxr-xr-x | utils/userloc.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/userloc.pl b/utils/userloc.pl index 3358cc2dc8..e9e4b9062a 100755 --- a/utils/userloc.pl +++ b/utils/userloc.pl @@ -161,19 +161,20 @@ sub printStats print " <tr><th style=\"text-align:left\">Directory</th>\n"; foreach $user (keys %Stats) { - print "<th style=\"text-align:right\">",$user,"</th></tr>\n"; + print "<th style=\"text-align:right\">",$user,"</th>\n"; } + print "</tr>\n"; } $RowCount++; - foreach $user (keys %{$hash}) { $total += $hash->{$user}; } - if ($html) { print "<tr><td style=\"text-align:left\">",$dir,"</td>"; } else { print $dir,"\n"; } + foreach $user (keys %{$hash}) { $total += $hash->{$user}; } + foreach $user ( sort keys %Stats ) { my $v = $hash->{$user}; |