stats: Remove printing of SparseHist total
authorSascha Bischoff <sascha.bischoff@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
committerSascha Bischoff <sascha.bischoff@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
This patch removes the printing of the SparseHist total in the
stats.txt output file. This has been removed as a sparse histogram has
no total, and therefore this was printing out the value of a
non-local, unrelated variable.

src/base/stats/text.cc

index 86f657e6e3cd4bdc09ab94593d00fdf1f89e77d4..3909c96ed7b3cf93cf356f7bbf0d3dd8acfdfede 100644 (file)
@@ -686,13 +686,6 @@ SparseHistPrint::operator()(ostream &stream) const
         print.value = (*it).second;
         print(stream);
     }
-
-    print.pdf = NAN;
-    print.cdf = NAN;
-
-    print.name = base + "total";
-    print.value = total;
-    print(stream);
 }
 
 void