@@ -22,7 +22,6 @@ namespace MAT_NS_BEGIN {
22
22
m_semanticContextDecorator (m_logManager),
23
23
m_isStarted (false )
24
24
{
25
- m_intervalMs = m_config.GetMetaStatsSendIntervalSec () * 1000 ;
26
25
}
27
26
28
27
Statistics::~Statistics ()
@@ -35,7 +34,7 @@ namespace MAT_NS_BEGIN {
35
34
return ;
36
35
}
37
36
38
- m_intervalMs = m_config.GetMetaStatsSendIntervalSec () * 1000 ;
37
+ unsigned int m_intervalMs = m_config.GetMetaStatsSendIntervalSec () * 1000 ;
39
38
if (m_intervalMs != 0 )
40
39
{
41
40
if (!m_isScheduled.exchange (true ))
@@ -54,7 +53,7 @@ namespace MAT_NS_BEGIN {
54
53
{
55
54
m_isScheduled = false ;
56
55
57
- m_intervalMs = m_config.GetMetaStatsSendIntervalSec () * 1000 ;
56
+ unsigned int m_intervalMs = m_config.GetMetaStatsSendIntervalSec () * 1000 ;
58
57
if (m_intervalMs == 0 )
59
58
{
60
59
// cancel pending stats event if timer changed at runtime
@@ -90,7 +89,7 @@ namespace MAT_NS_BEGIN {
90
89
bool Statistics::handleOnStart ()
91
90
{
92
91
// synchronously send stats event on SDK start, but only if stats are enabled
93
- if (m_intervalMs != 0 )
92
+ if (m_config. GetMetaStatsSendIntervalSec () * 1000 != 0 )
94
93
{
95
94
send (ACT_STATS_ROLLUP_KIND_START);
96
95
}
@@ -108,7 +107,7 @@ namespace MAT_NS_BEGIN {
108
107
}
109
108
110
109
// synchronously send stats event on SDK stop, but only if stats are enabled
111
- if (m_intervalMs != 0 )
110
+ if (m_config. GetMetaStatsSendIntervalSec () * 1000 != 0 )
112
111
{
113
112
send (ACT_STATS_ROLLUP_KIND_STOP);
114
113
}
0 commit comments