[libvirt] [PATCH] test: Implement BlockStats and InterfaceStats

Cole Robinson crobinso at redhat.com
Sun Jul 26 22:38:11 UTC 2009


Daniel Veillard wrote:
> On Fri, Jul 24, 2009 at 11:05:30AM -0400, Cole Robinson wrote:
>> We fake stats values based on the current time, similar to how it's done
>> for cpu time.
> 
>> +    if (gettimeofday(&tv, NULL) < 0) {
>> +        virReportSystemError(domain->conn, errno,
>> +                             "%s", _("getting time of day"));
>> +        goto error;
>> +    }
> 
>   can gettimeofday fail if the args are correct ? But that's fine :-)
> 
> With the second patch that looks fine.
> 
>   ACK
> 
> daniel
> 

I've pushed these patches now.

Thanks,
Cole




More information about the libvir-list mailing list