]> Cypherpunks.ru repositories - nncp.git/commitdiff
Comment clarification
authorSergey Matveev <stargrave@stargrave.org>
Sat, 14 Jan 2017 09:06:47 +0000 (12:06 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 14 Jan 2017 19:32:55 +0000 (22:32 +0300)
src/cypherpunks.ru/nncp/sp.go

index 979dd9e0c38455065af587cd23e3cd6ca15d9dc6..59f912f005bb702849c0c4a53e0afa44999a164a 100644 (file)
@@ -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...)
        }