qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v2 04/22] util: Infrastructure for computing rec


From: Stefan Hajnoczi
Subject: Re: [Qemu-block] [PATCH v2 04/22] util: Infrastructure for computing recent averages
Date: Tue, 13 Oct 2015 16:32:56 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

On Fri, Oct 02, 2015 at 05:26:14PM +0300, Alberto Garcia wrote:
> +int64_t cpu_get_clock(void)
> +{
> +    return my_clock_value;
> +}

Please add a comment here explaining that this is the clock for
QEMU_CLOCK_VIRTUAL.

> +/* Account a value
> + *
> + * @ta:    the TimedAverage structure
> + * @value: the value to account
> + */
> +void timed_average_account(TimedAverage *ta, uint64_t value)
> +{
> +    int i;
> +    check_expirations(ta);
> +
> +    /* Do the accouting in both windows at the same time */

s/accouting/accounting/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]