Author: toad
Date: 2008-02-27 17:20:25 +0000 (Wed, 27 Feb 2008)
New Revision: 18182

Modified:
   trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
Log:
Report 1024 (actual payload) not 1137 (our guesstimate of the resulting packet 
size).

Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java     2008-02-27 
17:16:36 UTC (rev 18181)
+++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java     2008-02-27 
17:20:25 UTC (rev 18182)
@@ -104,7 +104,7 @@
                                        int totalPackets;
                                        try {
                                                
_destination.sendAsync(DMT.createPacketTransmit(_uid, packetNo, _sentPackets, 
_prb.getPacket(packetNo)), null, PACKET_SIZE, _ctr);
-                                               if(_ctr != null) 
_ctr.sentPayload(PACKET_SIZE);
+                                               if(_ctr != null) 
_ctr.sentPayload(_prb._packetSize);
                                                
totalPackets=_prb.getNumPackets();
                                        } catch (NotConnectedException e) {
                                                Logger.normal(this, 
"Terminating send: "+e);


Reply via email to