summaryrefslogtreecommitdiff
path: root/ringbuffer.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-03-07 14:41:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-03-07 14:41:45 +0100
commit9c1f56ec71a68e945ff7315ae710f6f9f03e8cc8 (patch)
tree671fff5d1d2d8fa1d42a60e7b8db83eb3be8cac6 /ringbuffer.h
parent2dc3a3d399f7315df034c13fc63dc097683f1f97 (diff)
downloadvdr-9c1f56ec71a68e945ff7315ae710f6f9f03e8cc8.tar.gz
vdr-9c1f56ec71a68e945ff7315ae710f6f9f03e8cc8.tar.bz2
Avoiding too many consecutive "ring buffer overflow" messages
Diffstat (limited to 'ringbuffer.h')
-rw-r--r--ringbuffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ringbuffer.h b/ringbuffer.h
index ca5b2069..349096fe 100644
--- a/ringbuffer.h
+++ b/ringbuffer.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ringbuffer.h 1.13 2003/10/18 10:29:25 kls Exp $
+ * $Id: ringbuffer.h 1.14 2004/03/07 13:40:45 kls Exp $
*/
#ifndef __RINGBUFFER_H
@@ -21,6 +21,9 @@ private:
int putTimeout;
int getTimeout;
int size;
+ time_t lastOverflowReport;
+ int overflowCount;
+ int overflowBytes;
protected:
int maxFill;//XXX
int lastPercent;
@@ -39,6 +42,7 @@ public:
cRingBuffer(int Size, bool Statistics = false);
virtual ~cRingBuffer();
void SetTimeouts(int PutTimeout, int GetTimeout);
+ void ReportOverflow(int Bytes);
};
class cRingBufferLinear : public cRingBuffer {