commit | ea4ffc9009ac4596fe865fd5f7e8363cdacbbd66 | [log] [tgz] |
---|---|---|
author | paul <paul> | Fri Oct 21 20:04:41 2005 +0000 |
committer | paul <paul> | Fri Oct 21 20:04:41 2005 +0000 |
tree | e7281a93367a634b7d08fa45c24951dbb0bd444c | |
parent | d24f6e2a34ca829bd2ff6adb98b49d4d2d9cb737 [diff] [blame] |
2005-10-21 Paul Jakma <paul.jakma@sun.com> * ospf_dump.c: (ospf_timeval_dump) fix ms adjustment, thanks to Andrew Schorr. * ospf_vty.c: (ospf_config_write) fix write out of spf timers configuration.
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index 9ae87a6..2cccc14 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c
@@ -249,8 +249,8 @@ if (ms >= 1000) { - t->tv_sec = ms / 1000; - ms =- t->tv_sec * 1000; + t->tv_sec += ms / 1000; + ms %= 1000; } if (t->tv_sec > WEEK_IN_SECONDS)