From: Sergey Matveev Date: Sat, 14 Jan 2017 09:06:47 +0000 (+0300) Subject: Comment clarification X-Git-Tag: 0.2^2~26 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=20e65d4a8e199adcaedc9fc8a4808fa222bb7ad9;p=nncp.git Comment clarification --- diff --git a/src/cypherpunks.ru/nncp/sp.go b/src/cypherpunks.ru/nncp/sp.go index 979dd9e..59f912f 100644 --- a/src/cypherpunks.ru/nncp/sp.go +++ b/src/cypherpunks.ru/nncp/sp.go @@ -299,7 +299,7 @@ func (ctx *Ctx) StartI(conn net.Conn, nodeId *NodeId, nice uint8, xxOnly *TRxTx) if len(infosPayloads) > 0 { firstPayload = infosPayloads[0] } - // Pad first payload, to hide actual existing files + // Pad first payload, to hide actual number of existing files for i := 0; i < (MaxSPSize-len(firstPayload))/SPHeadOverhead; i++ { firstPayload = append(firstPayload, SPHaltMarshalized...) } @@ -419,7 +419,7 @@ func (ctx *Ctx) StartR(conn net.Conn, nice uint8, xxOnly *TRxTx) (*SPState, erro if len(infosPayloads) > 0 { firstPayload = infosPayloads[0] } - // Pad first payload, to hide actual existing files + // Pad first payload, to hide actual number of existing files for i := 0; i < (MaxSPSize-len(firstPayload))/SPHeadOverhead; i++ { firstPayload = append(firstPayload, SPHaltMarshalized...) }