Fix a brain blunder in the HTML output.
[oota-llvm.git] / utils / userloc.pl
index 3358cc2dc884a1dd9a819ec450b3f8fa5bd070f5..e9e4b9062ad0434938376116660c67dca90aae68 100755 (executable)
@@ -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};