lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c


From: Dmitry Potapov
Subject: [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c
Date: Mon, 12 Mar 2007 15:12:32 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070216 Firefox/1.5.0.10

Follow-up Comment #18, patch #5785 (project lwip):

> To avoid these kind of problems, and got a ms value

It is enough to have sys_arch_get_tickcount() and sys_diff_tickcount().

>  return (((0xffffffff-tickcount)+ulTickCount)/ulTicksPerMilliSec); 

This is incorrect. Let's suppose tickcount=0xffffffff and ulTickCount = 0
then your formula gives 0 when the correct answer is 1.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5785>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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