On 06/11/2013 07:03 PM, Yogesh Dahiya wrote:
> Thanks Its working fine now after the update and commenting assert
> statement.
> 

I think I found the problem. The ticks calculation was using 32 bit math
on a 32-bit platform because the type was unsigned long, so there was
numeric overflow. The right casting seems to fix the issue.

-josh

> 
> On Wed, Jun 12, 2013 at 4:08 AM, Josh Blum <j...@joshknows.com> wrote:
> 
>>
>>> time_now() = 122002822
>>> _init_time = 1984664495
>>>
>>
>> Well thats special, _init_time > time_now...
>>
>> One possible explanation is that on this version, CLOCK MONOTONIC has a
>> different monotonic count per thread. given that the tick count is also
>> pretty small, I suspect this is the case. But not on the more recent
>> versions of ubuntu. :-)
>>
>> I will have to do a little more research. But its safe to comment out
>> the asserts. The times are just used for the status monitor to determine
>> the downtime of a particular port.
>>
>> -josh
>>
> 

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to