static void throttle_fix_bucket(LeakyBucket *bkt)

{

    double min;



    /* zero bucket level */

    bkt->level = bkt->burst_level = 0;



    /* The following is done to cope with the Linux CFQ block scheduler

     * which regroup reads and writes by block of 100ms in the guest.

     * When they are two process one making reads and one making writes cfq

     * make a pattern looking like the following:

     * WWWWWWWWWWWRRRRRRRRRRRRRRWWWWWWWWWWWWWwRRRRRRRRRRRRRRRRR

     * Having a max burst value of 100ms of the average will help smooth the

     * throttling

     */

    min = bkt->avg / 10;

    if (bkt->avg && !bkt->max) {

        bkt->max = min;

    }

}

static void throttle_fix_bucket(LeakyBucket *bkt)

{

    double min;



    

    bkt->level = bkt->burst_level = 0;



    















    min = bkt->avg / 10;

    if (bkt->avg && !bkt->max) {

        bkt->max = min;

    }

}

static void FUNC_0(LeakyBucket *VAR_0)

{

    double VAR_1;



    

    VAR_0->level = VAR_0->burst_level = 0;



    















    VAR_1 = VAR_0->avg / 10;

    if (VAR_0->avg && !VAR_0->max) {

        VAR_0->max = VAR_1;

    }

}

static void FUNC_0(LeakyBucket *VAR_0)
{ double VAR_1; VAR_0->level = VAR_0->burst_level = 0; VAR_1 = VAR_0->avg / 10; if (VAR_0->avg && !VAR_0->max) { VAR_0->max = VAR_1; } }