mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
cleaned up some of the std::cerr output.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c05f90bda3
commit
6ac2cad4aa
4 changed files with 10 additions and 3 deletions
|
@ -51,6 +51,7 @@ int fixme(char *str, int n);
|
|||
//! controlling data rates
|
||||
/*!
|
||||
* For controlling data rates.
|
||||
* #define DEBUG_RATECAP 1
|
||||
*/
|
||||
class RateInterface
|
||||
{
|
||||
|
@ -110,13 +111,17 @@ virtual void setRateCap(float val_in, float val_out)
|
|||
{
|
||||
if ((val_in == 0) && (val_out == 0))
|
||||
{
|
||||
#ifdef DEBUG_RATECAP
|
||||
std::cerr << "RateInterface::setRateCap() Now disabled" << std::endl;
|
||||
#endif
|
||||
bwCapEnabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG_RATECAP
|
||||
std::cerr << "RateInterface::setRateCap() Enabled ";
|
||||
std::cerr << "in: " << bwCap_in << " out: " << bwCap_out << std::endl;
|
||||
#endif
|
||||
bwCapEnabled = true;
|
||||
bwCap_in = val_in;
|
||||
bwCap_out = val_out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue