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
@ -207,7 +207,12 @@
|
|||||||
* signal indicating a change in network status.
|
* signal indicating a change in network status.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYSTEM_TIME64
|
||||||
# define LONG_TIME_SEC (60*60) /* One hour in seconds */
|
# 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 */
|
#define SHORT_TIME_SEC (2) /* 2 seconds */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user