modified stats payloads

This commit is contained in:
Sven Fuchs 2012-09-15 15:12:18 +02:00
parent 8b078ca7b5
commit deb4655e8a
3 changed files with 6 additions and 5 deletions

View File

@ -22,7 +22,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-api.git
revision: a2d195ecf9340c31c4ee2c439e3b2aac54181157
revision: a8fc2f0e7ac41ee55b937e607b8897b2b118411b
branch: sf-use-services
specs:
travis-api (0.0.1)
@ -40,7 +40,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-core.git
revision: e443f562e98e241ea1ead59205399ac0f2d37a76
revision: fc927a39215d84564e3b00115800ba3def742a55
branch: sf-more-services
specs:
travis-core (0.0.1)

View File

@ -20,8 +20,9 @@
CHARTS:
repos:
source: '/api/stats/repos'
total: 0
map: (data) ->
[Date.parse(data.date), data.total_growth]
[Date.parse(data.date), @total += parseInt(data.count)]
chart:
renderTo: "repos_stats"
title:
@ -46,7 +47,7 @@
builds:
source: '/api/stats/tests'
map: (data) ->
[Date.parse(data.date), data.run_on_date]
[Date.parse(data.date), parseInt(data.count)]
chart:
renderTo: "tests_stats"
type: "column"

File diff suppressed because one or more lines are too long