Skip to content

Commit

Permalink
Merge pull request #3 from victorcoder/etcd-2.1
Browse files Browse the repository at this point in the history
Etcd 2.1
  • Loading branch information
Victor Castell committed Aug 3, 2015
2 parents 23efb2c + 72900bb commit e7f9576
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Binary file modified bin/etcd
Binary file not shown.
Binary file removed bin/serf
Binary file not shown.
8 changes: 6 additions & 2 deletions dcron/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ func (a *AgentCommand) dashboardIndexHandler(w http.ResponseWriter, r *http.Requ
if err != nil {
log.Error(err)
}
version := res.Body
var version struct {
Etcdserver string `json:etcdserver`
Etcdcluster string `json:etcdcluster`
}
json.Unmarshal(res.Body, &version)

var ss *EtcdServerStats
rr = etcdc.NewRawRequest("GET", "stats/self", nil, nil)
Expand All @@ -42,7 +46,7 @@ func (a *AgentCommand) dashboardIndexHandler(w http.ResponseWriter, r *http.Requ
Stats *EtcdServerStats
StartTime string
}{
Version: string(version),
Version: version.Etcdserver,
Stats: ss,
StartTime: ss.LeaderInfo.StartTime.Format("2/Jan/2006 15:05:05"),
}
Expand Down
5 changes: 3 additions & 2 deletions static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dcron.controller('JobListCtrl', function ($scope, $http, $interval) {
});

response.error(function(data, status, headers, config) {
alert("Error getting data");
$('#message').html('<div class="alert alert-danger fade in"><button type="button" class="close close-alert" data-dismiss="alert" aria-hidden="true">x</button>Error getting data</div>');
});
}, 2000);

Expand Down Expand Up @@ -97,7 +97,8 @@ dcron.controller('IndexCtrl', function ($scope, $http, $interval, $element) {
});

response.error(function(data, status, headers, config) {
alert("Error getting data");
$('#message').html('<div class="alert alert-danger fade in"><button type="button" class="close close-alert" data-dismiss="alert" aria-hidden="true">x</button>Error getting data</div>');

});
}, 2000);

Expand Down

0 comments on commit e7f9576

Please sign in to comment.