Revision 35855ff5

b/ui/static/snf/js/models.js
137 137
                                                    fast:fast, limit:limit, 
138 138
                                                    call_on_start:initial_call});
139 139

  
140
            snf.api.bind("call", _.throttle(_.bind(function(){ updater.faster()}, this)), 2000);
140
            snf.api.bind("call", _.throttle(_.bind(function(){ updater.faster(true)}, this)), 1000);
141 141
            return updater;
142 142
        }
143 143
    });
b/ui/static/snf/js/sync.js
361 361

  
362 362
        _cb = _.bind(_cb, this);
363 363

  
364
        this.faster = function() {
364
        this.faster = function(do_call) {
365 365
            this.timeout = this.fast_timeout;
366 366
            this._called = 0;
367
            this.setInterval();
367
            this.setInterval(do_call);
368 368
        }
369 369

  
370
        this.setInterval = function() {
370
        this.setInterval = function(do_call) {
371 371
            this.trigger("clear");
372 372
            window.clearInterval(this.interval);
373 373
            
374 374
            this.interval = window.setInterval(_cb, this.timeout);
375 375
            this.running = true;
376 376
            
377
            var call = this.call_on_start;
377
            var call = do_call || this.call_on_start;
378 378
            
379 379
            if (this.last_call) {
380 380
                var next_call = (this.timeout - ((new Date) - this.last_call));
b/ui/static/snf/js/ui/web/ui_main_view.js
444 444

  
445 445
        init_intervals: function() {
446 446
            this._networks = storage.networks.get_fetcher(snf.config.update_interval, 
447
                                                          snf.config.update_interval - 100, 
447
                                                          snf.config.update_interval / 2, 
448 448
                                                          1, true, undefined);
449 449
            this._vms = storage.vms.get_fetcher(snf.config.update_interval, 
450
                                                snf.config.update_interval - 100, 
450
                                                snf.config.update_interval / 2, 
451 451
                                                1, true, undefined);
452 452
        },
453 453

  
b/ui/templates/home.html
555 555
            });
556 556
            {% endif %}
557 557
            
558
            synnefo.config.update_interval = 5000 || {{ update_interval }};
558
            synnefo.config.update_interval = {{ update_interval }};
559 559
            synnefo.config.delay_on_blur = true;
560 560

  
561 561
            // match <= 1.9.1

Also available in: Unified diff