Bug 1190782 - about:telemetry: CSS warnings about setting height and padding-top to 'NaNem'. r=gfritzsche
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 04 Aug 2015 11:49:42 +0200
changeset 256050 1164ec23627381ff9ce7747f8e5441560e7e5b82
parent 256049 458994e3fcc9929233dfd4dfa5b1f244e2c8c732
child 256081 b3f61169f7273904ce5d36e13e11c7694e32ad75
push id63227
push userarchaeopteryx@coole-files.de
push dateTue, 04 Aug 2015 10:54:54 +0000
treeherdermozilla-inbound@1164ec236273 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche
bugs1190782
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1190782 - about:telemetry: CSS warnings about setting height and padding-top to 'NaNem'. r=gfritzsche
toolkit/content/aboutTelemetry.js
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -1058,17 +1058,17 @@ let Histogram = {
    */
   renderValues: function Histogram_renderValues(aDiv, aHgram, aOptions) {
     let text = "";
     // If the last label is not the longest string, alignment will break a little
     let labelPadTo = 0;
     if (aHgram.values.length) {
       labelPadTo = String(aHgram.values[aHgram.values.length - 1][0]).length;
     }
-    let maxBarValue = aOptions.exponential ? this.getLogValue(aHgram.max_value) : aHgram.max;
+    let maxBarValue = aOptions.exponential ? this.getLogValue(aHgram.max) : aHgram.max;
 
     for (let [label, value] of aHgram.values) {
       let barValue = aOptions.exponential ? this.getLogValue(value) : value;
 
       // Create a text representation: <right-aligned-label> |<bar-of-#><value>  <percentage>
       text += EOL
               + " ".repeat(Math.max(0, labelPadTo - String(label).length)) + label // Right-aligned label
               + " |" + "#".repeat(Math.round(MAX_BAR_CHARS * barValue / maxBarValue)) // Bar