summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-09-30 16:18:53 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-09-30 16:18:53 +0100
commitef5e6027a6465e4249e240ea4703f6bcb21edcc2 (patch)
tree1fc9d38fa9cb477fb4d2faaf23e11906ebb2b2bf
parentd23dc0782ebb0d1ea292b0cac6385676c9209a9a (diff)
downloadciat-ui-ef5e6027a6465e4249e240ea4703f6bcb21edcc2.tar.gz
Start getting data needed for progress bars
-rw-r--r--js/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 04e9bc9..d4e1c80 100644
--- a/js/main.js
+++ b/js/main.js
@@ -52,7 +52,10 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval)
var buildsPath = apiBase + '/builders/' + key +
'/builds/' + lastBuildID;
+ var currentTime = Math.round(new Date().getTime() / 1000);
+
$http.get(buildsPath).then(function(response) {
+ var previousTime = Math.round(response.data.times[0] - response.data.times[1])
var details = {
success: checkInArray(response.data.text, 'successful'),
failed: checkInArray(response.data.text, 'failed'),