Prasad Pandit <ppan...@redhat.com> writes:

> On Wed, 16 Jul 2025 at 19:06, Fabiano Rosas <faro...@suse.de> wrote:
>> The condition should be >=.
>
> * I'm thinking of doing away with the loop and the string array. The
> array has 3 values of which only one gets used due to conversion to
> seconds.

The point is not to convert to seconds, but to fit the number of
microseconds in a range. Take a look at the output of 'info migrate -a'
with postcopy-blocktime capability enabled.

>
>> But then that's "0 sec" for 1000000 us.
>
> #define US  (MS * 1000) => 1000000
>
> When us = 1000000,  us / US should return "1 sec", no?
>

Sorry, I meant when the number of microseconds is smaller than a second.

> Thank you.
> ---
>   - Prasad

Reply via email to