lib/http/public/javascripts/main.js
function pollStats(ms) {
    request('./stats', function (data) {
        o('li.inactive .count').text(data.inactiveCount);
        o('li.active .count').text(data.activeCount);
        o('li.complete .count').text(data.completeCount);
        o('li.failed .count').text(data.failedCount);
        o('li.delayed .count').text(data.delayedCount);
        setTimeout(function () {
            pollStats(ms);
        }, ms);
    });
}
function pollStats(ms) {
    request('./stats', function (data) {
        o('li.inactive .count').text(data.inactiveCount);
        o('li.active .count').text(data.activeCount);
        o('li.complete .count').text(data.completeCount);
        o('li.failed .count').text(data.failedCount);
        o('li.delayed .count').text(data.delayedCount);
        setTimeout(function () {
            pollStats(ms);
        }, ms);
    });
}
function pollStats ( ms ) { request ( './stats' , function ( data ) { o ( 'li.inactive .count' ) . text ( data . inactiveCount ) ; o ( 'li.active .count' ) . text ( data . activeCount ) ; o ( 'li.complete .count' ) . text ( data . completeCount ) ; o ( 'li.failed .count' ) . text ( data . failedCount ) ; o ( 'li.delayed .count' ) . text ( data . delayedCount ) ; setTimeout ( function ( ) { pollStats ( ms ) ; } , ms ) ; } ) ; }
Poll for stats every `ms`.

@param {Number} ms
Poll for stats every ms .