Configure rhizome announce interval

This commit is contained in:
Jeremy Lakeman 2013-02-14 17:18:01 +10:30
parent 45efb3f899
commit f2025cd601
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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);
}