Commit 06af3334 authored by Adam Wujek's avatar Adam Wujek

[BUG: #239] Revert "Fix time-out issue when time greater than 2^31-1"

This reverts commit ba107c11.

The mentioned commit has been reverted because timeouts did not work correctly
at the overflow causing the WRS to resync and sometimes stuck after ~49.7 days
(and multiplies) after boot.:
parent e2d8f15c
......@@ -35,7 +35,7 @@
#define time_after_eq(a,b) \
(typecheck(unsigned long, a) && \
typecheck(unsigned long, b) && \
((unsigned long)(a) >= (unsigned long)(b)))
((long)(a) - (long)(b) >= 0))
#define time_before_eq(a,b) time_after_eq(b,a)
#endif /* ifndef */
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment