Index: tracing/tracing/ui/extras/about_tracing/record_controller.html |
diff --git a/tracing/tracing/ui/extras/about_tracing/record_controller.html b/tracing/tracing/ui/extras/about_tracing/record_controller.html |
index a04fe8ed4b3cfbc55d6460abbb2cc97f03abe118..9e09cfea1db99f357c3f322564d950688cb0c556 100644 |
--- a/tracing/tracing/ui/extras/about_tracing/record_controller.html |
+++ b/tracing/tracing/ui/extras/about_tracing/record_controller.html |
@@ -134,21 +134,20 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
} |
function getBufferPercentFull() { |
- if (!bufferPercentFullDiv) |
- return; |
+ if (!bufferPercentFullDiv) return; |
tracingControllerClient.beginGetBufferPercentFull().then( |
updateBufferPercentFull); |
} |
function updateBufferPercentFull(percentFull) { |
- if (!bufferPercentFullDiv) |
- return; |
+ if (!bufferPercentFullDiv) return; |
percentFull = Math.round(100 * parseFloat(percentFull)); |
var newText = 'Buffer usage: ' + percentFull + '%'; |
- if (Polymer.dom(bufferPercentFullDiv).textContent !== newText) |
+ if (Polymer.dom(bufferPercentFullDiv).textContent !== newText) { |
Polymer.dom(bufferPercentFullDiv).textContent = newText; |
+ } |
window.setTimeout(getBufferPercentFull, 500); |
} |