diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-09-06 18:18:46 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-09-06 18:18:46 +0200 |
commit | 6e26957078c4469dc00a41910c1311f397e39f26 (patch) | |
tree | 27fc7983a2454a43fe85152f94e0b805bbe9f2bb /lib | |
parent | 59ca7aa09dd956748fe5f5acfee2de8a60ca995d (diff) | |
download | bugzilla-triage-6e26957078c4469dc00a41910c1311f397e39f26.tar.gz |
Impove Xorg analysis results0.23
* remove headers which are always the same
* add summary with number of matching lines.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rhbzpage.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 282189b..1e870f7 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -676,10 +676,17 @@ RHBugzillaPage.prototype.analyzeXorgLog = function analyzeXorgLog(attachID) { filter(function(line) { return (that.RE.soughtLines.test(line)); }); + // Remove headers + if (results.length >= 3) { + results.splice(0, 3); + } if (results.length > 0) { results.forEach(function(l) { preElem.innerHTML += l + "\n"; }); + // Add a summary + preElem.innerHTML += "----------\n" + + results.length + " interesting lines found."; } else { preElem.innerHTML += "No matching lines found!"; } |