- minExpires = now + mindt;
-
- /* t0 is assumed to be in the past. If it's numerically greater
- than now, that just represents a time one wrap-around
- ago. This requires handling the t0 <= now and t0 > now cases
- separately. */
- if (t0 <= now)
- {
- /* if it's in the past or the near future, fire now (i.e., test
- guardedExpires <= now in wrap-around arithmetic). */
- if (guardedExpires >= t0 && // if it wraps, it's > now
- guardedExpires <= now)
- expires = minExpires;
- }