GUI -- Fixed a few issues int intentPerf.js caught by review, but after merge.
Change-Id: I3ea108d0a7827d5633ef7667db572bfd5b85689a
Showing
1 changed file
with
6 additions
and
6 deletions
... | @@ -71,7 +71,7 @@ | ... | @@ -71,7 +71,7 @@ |
71 | resize(dim); | 71 | resize(dim); |
72 | 72 | ||
73 | headers.forEach(function (h, li) { | 73 | headers.forEach(function (h, li) { |
74 | - // Prime the data to match the headeres and zero it out. | 74 | + // Prime the data to match the headers and zero it out. |
75 | data[li] = d3.range(n).map(function() { return 0 }); | 75 | data[li] = d3.range(n).map(function() { return 0 }); |
76 | theSample[li] = 0; | 76 | theSample[li] = 0; |
77 | 77 | ||
... | @@ -94,7 +94,7 @@ | ... | @@ -94,7 +94,7 @@ |
94 | function lineColor(li) { | 94 | function lineColor(li) { |
95 | return li < headers.length - 1 ? | 95 | return li < headers.length - 1 ? |
96 | sus.cat7().getColor(li, false, ts.theme()) : | 96 | sus.cat7().getColor(li, false, ts.theme()) : |
97 | - ts.theme() == 'light' ? '#333' : '#eee'; | 97 | + ts.theme() === 'light' ? '#333' : '#eee'; |
98 | } | 98 | } |
99 | 99 | ||
100 | function tick() { | 100 | function tick() { |
... | @@ -113,7 +113,8 @@ | ... | @@ -113,7 +113,8 @@ |
113 | 113 | ||
114 | // redraw the line and slide it left | 114 | // redraw the line and slide it left |
115 | paths[li].attr("d", lines[li]).attr("transform", null); | 115 | paths[li].attr("d", lines[li]).attr("transform", null); |
116 | - paths[li].transition().attr("transform", "translate(" + x(now - (n - 1) * duration) + ")"); | 116 | + paths[li].transition() |
117 | + .attr("transform", "translate(" + x(now - (n - 1) * duration) + ")"); | ||
117 | 118 | ||
118 | // pop the old data point off the front | 119 | // pop the old data point off the front |
119 | d.shift(); | 120 | d.shift(); |
... | @@ -211,9 +212,6 @@ | ... | @@ -211,9 +212,6 @@ |
211 | }; | 212 | }; |
212 | } | 213 | } |
213 | 214 | ||
214 | - //setInterval(function () { theSample = samples[++cs]; }, 5000); | ||
215 | - //createGraph(); | ||
216 | - | ||
217 | // define the controller | 215 | // define the controller |
218 | 216 | ||
219 | angular.module('ovIntentPerf', ['onosUtil']) | 217 | angular.module('ovIntentPerf', ['onosUtil']) |
... | @@ -263,6 +261,8 @@ | ... | @@ -263,6 +261,8 @@ |
263 | stop(); | 261 | stop(); |
264 | }); | 262 | }); |
265 | 263 | ||
264 | + $log.log('OvIntentPerfCtrl has been created'); | ||
265 | + | ||
266 | start(); | 266 | start(); |
267 | }]); | 267 | }]); |
268 | }()); | 268 | }()); | ... | ... |
-
Please register or login to post a comment