[llvm-commits] CVS: poolalloc/test/TEST.poolalloc.report

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 24 14:18:02 PDT 2003


Changes in directory poolalloc/test:

TEST.poolalloc.report updated: 1.3 -> 1.4

---
Log message:

Actually print out what the column header indicates


---
Diffs of the changes:  (+1 -1)

Index: poolalloc/test/TEST.poolalloc.report
diff -u poolalloc/test/TEST.poolalloc.report:1.3 poolalloc/test/TEST.poolalloc.report:1.4
--- poolalloc/test/TEST.poolalloc.report:1.3	Tue Oct 21 15:41:49 2003
+++ poolalloc/test/TEST.poolalloc.report	Fri Oct 24 14:17:12 2003
@@ -11,7 +11,7 @@
   my ($Cols, $Col) = @_;
   if ($Cols->[$Col-1] ne "*" and $Cols->[$Col-2] ne "*" and
       $Cols->[$Col-1] != "0") {
-    return 100.0*$Cols->[$Col-2]/$Cols->[$Col-1] . "%";
+    return sprintf "%3.2f%%", ((100.0*$Cols->[$Col-2])/$Cols->[$Col-1] - 100.0);
   } else {
     return "n/a";
   }





More information about the llvm-commits mailing list