fix bug in MeterFilter
parent
65abe91c8c
commit
067b425053
26
filters.cpp
26
filters.cpp
|
|
@ -133,19 +133,23 @@ bool Filter::OutputMessageSeriesEnd(int outputSite, int propagation, bool blocki
|
||||||
|
|
||||||
unsigned int MeterFilter::Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking)
|
unsigned int MeterFilter::Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking)
|
||||||
{
|
{
|
||||||
FILTER_BEGIN;
|
if (m_transparent)
|
||||||
m_currentMessageBytes += length;
|
|
||||||
m_totalBytes += length;
|
|
||||||
|
|
||||||
if (messageEnd)
|
|
||||||
{
|
{
|
||||||
m_currentMessageBytes = 0;
|
FILTER_BEGIN;
|
||||||
m_currentSeriesMessages++;
|
m_currentMessageBytes += length;
|
||||||
m_totalMessages++;
|
m_totalBytes += length;
|
||||||
|
|
||||||
|
if (messageEnd)
|
||||||
|
{
|
||||||
|
m_currentMessageBytes = 0;
|
||||||
|
m_currentSeriesMessages++;
|
||||||
|
m_totalMessages++;
|
||||||
|
}
|
||||||
|
|
||||||
|
FILTER_OUTPUT(1, begin, length, messageEnd);
|
||||||
|
FILTER_END_NO_MESSAGE_END;
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
FILTER_OUTPUT(1, begin, length, messageEnd);
|
|
||||||
FILTER_END_NO_MESSAGE_END;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MeterFilter::IsolatedMessageSeriesEnd(bool blocking)
|
bool MeterFilter::IsolatedMessageSeriesEnd(bool blocking)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue