mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
2333. [bug] Fix off by one error in isc_time_nowplusinterval().
[RT #17608]
This commit is contained in:
parent
878c2e6886
commit
9e8947d9e6
3
CHANGES
3
CHANGES
@ -1,3 +1,6 @@
|
|||||||
|
2333. [bug] Fix off by one error in isc_time_nowplusinterval().
|
||||||
|
[RT #17608]
|
||||||
|
|
||||||
2332. [contrib] query-loc-0.4.0. [RT #17602]
|
2332. [contrib] query-loc-0.4.0. [RT #17602]
|
||||||
|
|
||||||
2331. [bug] Failure to regenerate any signatures was not being
|
2331. [bug] Failure to regenerate any signatures was not being
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: time.c,v 1.54 2007/06/18 23:47:48 tbox Exp $ */
|
/* $Id: time.c,v 1.55 2008/02/15 02:24:04 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ isc_time_nowplusinterval(isc_time_t *t, const isc_interval_t *i) {
|
|||||||
|
|
||||||
t->seconds = tv.tv_sec + i->seconds;
|
t->seconds = tv.tv_sec + i->seconds;
|
||||||
t->nanoseconds = tv.tv_usec * NS_PER_US + i->nanoseconds;
|
t->nanoseconds = tv.tv_usec * NS_PER_US + i->nanoseconds;
|
||||||
if (t->nanoseconds > NS_PER_S) {
|
if (t->nanoseconds >= NS_PER_S) {
|
||||||
t->seconds++;
|
t->seconds++;
|
||||||
t->nanoseconds -= NS_PER_S;
|
t->nanoseconds -= NS_PER_S;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user