mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Configure rhizome announce interval
This commit is contained in:
parent
45efb3f899
commit
f2025cd601
@ -299,6 +299,7 @@ END_STRUCT
|
||||
|
||||
STRUCT(rhizome_advertise)
|
||||
ATOM(int, enable, 1, cf_opt_int_boolean,, "If true, Rhizome advertisements are sent")
|
||||
ATOM(uint32_t, interval, 500, cf_opt_uint32_nonzero,, "Interval between Rhizome advertisements")
|
||||
END_STRUCT
|
||||
|
||||
STRUCT(rhizome)
|
||||
|
@ -223,7 +223,7 @@ void overlay_rhizome_advertise(struct sched_ent *alarm){
|
||||
|
||||
end:
|
||||
sqlite_set_tracefunc(oldfunc);
|
||||
alarm->alarm = gettime_ms()+500;
|
||||
alarm->alarm = gettime_ms()+config.rhizome.advertise.interval;
|
||||
alarm->deadline = alarm->alarm+10000;
|
||||
schedule(alarm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user