From: Sergey Matveev Date: Wed, 6 Jan 2021 20:51:12 +0000 (+0300) Subject: Fix nncp-stat -pkt direction output X-Git-Tag: v5.5.0^2~3 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=adea2dc4bf9951998a4eb52af00817d29d5665ca;hp=57ad1181a80e569791e2e495f5765f3762fd024d;p=nncp.git Fix nncp-stat -pkt direction output --- diff --git a/doc/news.ru.texi b/doc/news.ru.texi index 70bbe2f..f9ff365 100644 --- a/doc/news.ru.texi +++ b/doc/news.ru.texi @@ -6,8 +6,8 @@ @itemize @item -Исправления ошибок в @command{nncp-call(er)}/@command{nncp-daemon} и -@command{nncp-bundle} командах. +Исправления ошибок в @command{nncp-call(er)}/@command{nncp-daemon}, +@command{nncp-bundle}, @command{nncp-stat} командах. @item У команды @command{nncp-rm} появились @option{-dryrun} и @option{-older} опции. diff --git a/doc/news.texi b/doc/news.texi index b7c4e53..30f1c99 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -8,8 +8,8 @@ See also this page @ref{Новости, on russian}. @itemize @item -Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon} and -@command{nncp-bundle}. +Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon}, +@command{nncp-bundle} and @command{nncp-stat}. @item @command{nncp-rm} has @option{-dryrun} and @option{-older} options now. diff --git a/src/cmd/nncp-stat/main.go b/src/cmd/nncp-stat/main.go index 34eebd9..04aaed2 100644 --- a/src/cmd/nncp-stat/main.go +++ b/src/cmd/nncp-stat/main.go @@ -111,7 +111,7 @@ func main() { for job := range ctx.Jobs(node.Id, nncp.TTx) { job.Fd.Close() // #nosec G104 if *showPkt { - jobPrint(nncp.TRx, job) + jobPrint(nncp.TTx, job) } txNums[job.PktEnc.Nice] = txNums[job.PktEnc.Nice] + 1 txBytes[job.PktEnc.Nice] = txBytes[job.PktEnc.Nice] + job.Size