fix: add missing const for member functions of CRateCheckBuffer

This commit is contained in:
Konstantin Akimov 2024-09-26 02:16:30 +07:00
parent 982fc9a069
commit 41f1a43236
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -69,7 +69,7 @@ public:
fBufferEmpty = false; fBufferEmpty = false;
} }
int64_t GetMinTimestamp() int64_t GetMinTimestamp() const
{ {
int nIndex = nDataStart; int nIndex = nDataStart;
int64_t nMin = std::numeric_limits<int64_t>::max(); int64_t nMin = std::numeric_limits<int64_t>::max();
@ -85,7 +85,7 @@ public:
return nMin; return nMin;
} }
int64_t GetMaxTimestamp() int64_t GetMaxTimestamp() const
{ {
int nIndex = nDataStart; int nIndex = nDataStart;
int64_t nMax = 0; int64_t nMax = 0;
@ -112,7 +112,7 @@ public:
return RATE_BUFFER_SIZE - nDataStart + nDataEnd; return RATE_BUFFER_SIZE - nDataStart + nDataEnd;
} }
double GetRate() double GetRate() const
{ {
int nCount = GetCount(); int nCount = GetCount();
if (nCount < RATE_BUFFER_SIZE) { if (nCount < RATE_BUFFER_SIZE) {