]> Cypherpunks.ru repositories - nncp.git/commitdiff
go fmt
authorSergey Matveev <stargrave@stargrave.org>
Sat, 14 Jan 2017 08:57:46 +0000 (11:57 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 14 Jan 2017 08:57:46 +0000 (11:57 +0300)
src/cypherpunks.ru/nncp/tx.go

index b016863c47dd1c040a634ba8aaf8dba904c824f4..4303248243fb82582d3753cca5b9b98b50706657 100644 (file)
@@ -44,7 +44,7 @@ func (ctx *Ctx) Tx(node *Node, pkt *Pkt, nice uint8, size, minSize int64, src io
                lastNode = ctx.Neigh[*node.Via[i-1]]
                hops = append(hops, lastNode)
        }
-       padSize := minSize - size - int64(len(hops)) * (PktOverhead + PktEncOverhead)
+       padSize := minSize - size - int64(len(hops))*(PktOverhead+PktEncOverhead)
        if padSize < 0 {
                padSize = 0
        }