From: Sergey Matveev Date: Sat, 14 Jan 2017 08:57:46 +0000 (+0300) Subject: go fmt X-Git-Tag: 0.2^2~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=028a40fae7df84bcba9c5ca53fbcf8536d98804b;p=nncp.git go fmt --- diff --git a/src/cypherpunks.ru/nncp/tx.go b/src/cypherpunks.ru/nncp/tx.go index b016863..4303248 100644 --- a/src/cypherpunks.ru/nncp/tx.go +++ b/src/cypherpunks.ru/nncp/tx.go @@ -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 }