mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix: add missing const for member functions of CRateCheckBuffer
This commit is contained in:
parent
982fc9a069
commit
41f1a43236
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user