Stop logging loss fraction; it is only spam now, and we have the information in ...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Apr 2014 19:32:21 +0000 (21:32 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Apr 2014 19:32:21 +0000 (21:32 +0200)
server.cpp

index 0938999..b381e79 100644 (file)
@@ -478,12 +478,6 @@ void Server::skip_lost_data(Client *client)
                client->stream_pos = stream->bytes_received - stream->backlog_size;
                client->bytes_lost += bytes_lost;
                ++client->num_loss_events;
-
-               double loss_fraction = double(client->bytes_lost) / double(client->bytes_lost + client->bytes_sent);
-               log(WARNING, "[%s] Client lost %lld bytes (total loss: %.2f%%), maybe too slow connection",
-                       client->remote_addr.c_str(),
-                       (long long int)(bytes_lost),
-                       100.0 * loss_fraction);
        }
 }