mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 20:59:05 +00:00
netutils/netinit: Reduce net monitor delay on platforms without 64 bit time type.
Waiting for an hour can cause the calculated tick count in nxsem_clockwait to overflow due to the default width of sclock_t. Reduce the long wait period on platforms not using 64-bit time.
This commit is contained in:
parent
d3508b6acd
commit
a21476beab
1 changed files with 7 additions and 2 deletions
|
|
@ -207,8 +207,13 @@
|
|||
* signal indicating a change in network status.
|
||||
*/
|
||||
|
||||
#define LONG_TIME_SEC (60*60) /* One hour in seconds */
|
||||
#define SHORT_TIME_SEC (2) /* 2 seconds */
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
# define LONG_TIME_SEC (60*60) /* One hour in seconds */
|
||||
#else
|
||||
# define LONG_TIME_SEC (5*60) /* Five minutes in seconds */
|
||||
#endif
|
||||
|
||||
#define SHORT_TIME_SEC (2) /* 2 seconds */
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue