Added configuration for cclient update status interval

This commit is contained in:
BenDroid 2017-11-03 20:12:04 +01:00
parent 4e89560417
commit deaefe4d96
8 changed files with 37 additions and 18 deletions

View file

@ -74,7 +74,9 @@ CCClient::CCClient(const Options *options)
}
uv_timer_init(uv_default_loop(), &m_timer);
uv_timer_start(&m_timer, CCClient::onReport, kTickInterval, kTickInterval);
uv_timer_start(&m_timer, CCClient::onReport,
static_cast<uint64_t>(m_options->ccUpdateInterval() * 1000),
static_cast<uint64_t>(m_options->ccUpdateInterval() * 1000));
}
CCClient::~CCClient()