put the fails24 in the right place

Change-Id: I8669320f978af8cbb1661601838997e442c4f87a
This commit is contained in:
Sean Dague 2014-01-22 08:52:41 -05:00
parent 8bc515f251
commit 11cc86b5c6
2 changed files with 5 additions and 2 deletions

View File

@ -75,6 +75,7 @@ def main():
logstash_query=logstash_query,
bug_data=bug_data,
fails=0,
fails24=0,
data=[])
buglist.append(bug)
results = classifier.hits_by_query(query['query'], size=3000)
@ -89,7 +90,6 @@ def main():
facets.detect_facets(results,
["build_status", "timestamp", "build_uuid"])
bug['fails24'] = 0
for status in facets.keys():
data = []
for ts in range(start, now, STEP):

View File

@ -43,7 +43,10 @@ function update() {
div.appendTo($('#main-container'));
$('<h2/>', {text: 'Bug ' + bug['number'] + " - " + bug['bug_data']['name']}).appendTo(div);
$('<h3/>', {
text: 'Last 24 hr hits: ' + bug['bug_data']['fails24'] + ' &nbsp; projects: ' + bug['bug_data']['affects']
text: bug['fails24'] + ' fails in 24hrs / ' + bug['fails'] + ' fails in 7 days'
}).appendTo(div);
$('<h3/>', {
text: 'Projects: ' + bug['bug_data']['affects']
}).appendTo(div);
$('<div/>', {'class': 'graph'}).appendTo(div);
$('<a/>', {