WebUI : dont wait before the first API call

This commit is contained in:
Floran Brutel 2016-01-25 18:17:48 +01:00
parent dbb2e37b08
commit e9024b3017

View File

@ -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();