mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
Fixed grunt style warnings.
This commit is contained in:
parent
8a7f8f7c37
commit
6cb658a1ef
3 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ angular.module('containersNetwork', ['ngVis'])
|
||||||
this.hasEdge = function (from, to) {
|
this.hasEdge = function (from, to) {
|
||||||
return this.edges.getIds({
|
return this.edges.getIds({
|
||||||
filter: function (item) {
|
filter: function (item) {
|
||||||
return item.from == from.Id && item.to == to.Id;
|
return item.from === from.Id && item.to === to.Id;
|
||||||
}
|
}
|
||||||
}).length > 0;
|
}).length > 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,8 +9,8 @@ angular.module('pullImage', [])
|
||||||
repo: '',
|
repo: '',
|
||||||
fromImage: '',
|
fromImage: '',
|
||||||
tag: 'latest'
|
tag: 'latest'
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.init();
|
$scope.init();
|
||||||
|
|
||||||
|
@ -52,5 +52,5 @@ angular.module('pullImage', [])
|
||||||
$('#pull-modal').modal('show');
|
$('#pull-modal').modal('show');
|
||||||
$('#error-message').show();
|
$('#error-message').show();
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
|
@ -46,7 +46,7 @@ angular.module('stats', [])
|
||||||
if (systemDelta > 0.0 && cpuDelta > 0.0) {
|
if (systemDelta > 0.0 && cpuDelta > 0.0) {
|
||||||
cpuPercent = (cpuDelta / systemDelta) * curCpu.cpu_usage.percpu_usage.size() * 100.0;
|
cpuPercent = (cpuDelta / systemDelta) * curCpu.cpu_usage.percpu_usage.size() * 100.0;
|
||||||
}
|
}
|
||||||
return cpuPercent
|
return cpuPercent;
|
||||||
};
|
};
|
||||||
|
|
||||||
function updateChart(data) {
|
function updateChart(data) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue