mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
Don't print negative times in `show timeout' when the
link is up with a timeout of 0.
This commit is contained in:
parent
8f2e582726
commit
1a56baf602
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/MP/; revision=34692
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bundle.c,v 1.1.2.28 1998/03/16 22:53:29 brian Exp $
|
||||
* $Id: bundle.c,v 1.1.2.29 1998/03/18 23:15:29 brian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -794,7 +794,7 @@ bundle_IdleTimeout(void *v)
|
|||
void
|
||||
bundle_StartIdleTimer(struct bundle *bundle)
|
||||
{
|
||||
if (!(mode & (MODE_DEDICATED | MODE_DDIAL))) {
|
||||
if (!(mode & (MODE_DEDICATED | MODE_DDIAL)) && bundle->cfg.idle_timeout) {
|
||||
StopTimer(&bundle->idle.timer);
|
||||
bundle->idle.timer.func = bundle_IdleTimeout;
|
||||
bundle->idle.timer.load = bundle->cfg.idle_timeout * SECTICKS;
|
||||
|
|
Loading…
Reference in a new issue