diff --git a/conf_schema.h b/conf_schema.h index 90d8a4f7..8ffc44bb 100644 --- a/conf_schema.h +++ b/conf_schema.h @@ -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) diff --git a/rhizome_packetformats.c b/rhizome_packetformats.c index b6a97769..114cda05 100644 --- a/rhizome_packetformats.c +++ b/rhizome_packetformats.c @@ -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); }