Added configuration for cclient update status interval
This commit is contained in:
parent
4e89560417
commit
deaefe4d96
8 changed files with 37 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue