mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
WebUI : dont wait before the first API call
This commit is contained in:
parent
dbb2e37b08
commit
e9024b3017
@ -101,6 +101,7 @@ glancesApp.controller('statsController', function ($scope, $rootScope, $interval
|
||||
|
||||
var stop;
|
||||
$scope.configure_refresh = function () {
|
||||
$scope.refreshData();
|
||||
if (!angular.isDefined(stop)) {
|
||||
stop = $interval(function () {
|
||||
$scope.refreshData();
|
||||
|
Loading…
Reference in New Issue
Block a user