From 1cde5fbd9ad563a1d14025df94d81e94d5f7721c Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 8 Jan 2017 12:30:54 +0300 Subject: [PATCH] SP transfers packets, not files --- src/cypherpunks.ru/nncp/humanizer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cypherpunks.ru/nncp/humanizer.go b/src/cypherpunks.ru/nncp/humanizer.go index 2be3ac2..87a20c2 100644 --- a/src/cypherpunks.ru/nncp/humanizer.go +++ b/src/cypherpunks.ru/nncp/humanizer.go @@ -190,9 +190,9 @@ func (ctx *Ctx) Humanize(s string) string { case "sp-file": switch sds["xx"] { case "rx": - msg = "Got file " + msg = "Got packet " case "tx": - msg = "Sent file " + msg = "Sent packet " default: return s } @@ -214,9 +214,9 @@ func (ctx *Ctx) Humanize(s string) string { case "sp-done": switch sds["xx"] { case "rx": - msg = fmt.Sprintf("File %s is retreived (%s)", sds["hash"], size) + msg = fmt.Sprintf("Packet %s is retreived (%s)", sds["hash"], size) case "tx": - msg = fmt.Sprintf("File %s is sent", sds["hash"]) + msg = fmt.Sprintf("Packet %s is sent", sds["hash"]) default: return s } -- 2.48.1