fix socket io name error

This commit is contained in:
Matias Alejo Garcia 2014-01-20 12:10:49 -03:00
parent 951eeea6d0
commit 5468895e34
3 changed files with 7 additions and 2 deletions

View File

@ -23,5 +23,5 @@ module.exports.broadcast_block = function(block) {
}; };
module.exports.broadcastSyncInfo = function(syncInfo) { module.exports.broadcastSyncInfo = function(syncInfo) {
ios.sockets.emit('block', syncInfo); ios.sockets.emit('sync', syncInfo);
}; };

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', 'Sync', function ($scope, $routeParams, $location, Global, Status, Sync) { angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', '$rootScope', 'Global', 'Status', 'Sync', function ($scope, $routeParams, $location, $rootScope, Global, Status, Sync) {
$scope.global = Global; $scope.global = Global;
$scope.getStatus = function(q) { $scope.getStatus = function(q) {

View File

@ -75,6 +75,11 @@
<h3>sync status</h3> <h3>sync status</h3>
<table class="table table-striped" data-ng-init="getSync()"> <table class="table table-striped" data-ng-init="getSync()">
<tbody> <tbody>
<tr data-ng-show="sync.error">
<td colspan="2"> <span class="text-danger"> {{ sync.err }} </span>
</tr>
<tr> <tr>
<td>Sync Progress</td> <td>Sync Progress</td>
<td> {{(100 * sync.syncedBlocks/sync.blocksToSync)| number:2}}% <td> {{(100 * sync.syncedBlocks/sync.blocksToSync)| number:2}}%