summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-13 20:57:19 +0100
committerMartin Mares <mj@ucw.cz>1999-02-13 20:57:19 +0100
commit7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48 (patch)
treedc75aebd466fc060c93f1a4d97bc4d9191416d81 /sysdep
parent4c9dd1e4b95e273eacc900abb63db4b8bafaf34b (diff)
downloadbird-7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48.tar
bird-7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48.zip
Squashed one bug in timing of route scans.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/krt-scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c
index 55ba3a8..1428a7a 100644
--- a/sysdep/linux/krt-scan.c
+++ b/sysdep/linux/krt-scan.c
@@ -310,7 +310,7 @@ krt_scan_ifaces_done(struct krt_proto *x)
SCANOPT;
SCANSTAT;
- s->accum_time += p->scan_time;
+ s->accum_time += ((struct krt_config *) x->p.cf)->ifopt.scan_time;
if (p->scan_time && s->accum_time >= p->scan_time)
{
s->accum_time %= p->scan_time;
@@ -322,7 +322,7 @@ krt_scan_ifaces_done(struct krt_proto *x)
void
krt_scan_preconfig(struct krt_config *c)
{
- c->scanopt.scan_time = 1;
+ c->scanopt.scan_time = 60;
c->scanopt.learn = 0;
}