lib/core: fix flush period for real