From adea2dc4bf9951998a4eb52af00817d29d5665ca Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 6 Jan 2021 23:51:12 +0300 Subject: [PATCH] Fix nncp-stat -pkt direction output --- doc/news.ru.texi | 4 ++-- doc/news.texi | 4 ++-- src/cmd/nncp-stat/main.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.44.0