qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3] migration/xbzrle: add encoding rate


From: Richard Henderson
Subject: Re: [PATCH v3] migration/xbzrle: add encoding rate
Date: Thu, 4 Jun 2020 09:57:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 6/4/20 3:27 AM, Wei Wang wrote:
> On 06/04/2020 05:38 PM, Dr. David Alan Gilbert wrote:
>> Hmm OK; I'll admit to not liking NaN/Inf in output.
>>
>> Dave
>>
> 
> OK. To deal with the reported issue, how about using FLT_MAX (as opposed to
> UINT64_MAX or inf):
> xbzrle_counters.encoding_rate = FLT_MAX;

So you'd rather see 340282346638528859811704183484516925440.00 printed?

It's arbitrary and not correct in any mathematical sense.

If you *really* insist on not printing Inf (which may have some diagnostic
value), then 0 is just as arbitrary, and at least smaller in the output.


r~



reply via email to

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