From 257e8d04f436e722c05d7f9343f51220aae4866e Mon Sep 17 00:00:00 2001 From: jbebel Date: Sun, 3 Apr 2005 05:01:46 +0000 Subject: [PATCH] Fix peak reporting to report new peak rather than previous --- darkice/trunk/src/BufferedSink.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/darkice/trunk/src/BufferedSink.h b/darkice/trunk/src/BufferedSink.h index a7d0918..129cabc 100644 --- a/darkice/trunk/src/BufferedSink.h +++ b/darkice/trunk/src/BufferedSink.h @@ -164,9 +164,9 @@ class BufferedSink : public Sink, public virtual Reporter u = outp <= inp ? inp - outp : (bufferEnd - outp) + (inp - buffer); if ( peak < u ) { + peak = u; reportEvent( 4, "BufferedSink, new peak:", peak); reportEvent( 4, "BufferedSink, remaining:", bufferSize - peak); - peak = u; } } @@ -391,6 +391,9 @@ class BufferedSink : public Sink, public virtual Reporter $Source$ $Log$ + Revision 1.8 2005/04/03 05:01:46 jbebel + Fix peak reporting to report new peak rather than previous + Revision 1.7 2002/07/21 08:47:06 darkeye some exception cleanup (throw clauses in function declarations)