From: Sergey Matveev Date: Sun, 8 Jan 2017 09:30:54 +0000 (+0300) Subject: SP transfers packets, not files X-Git-Tag: 0.1~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1cde5fbd9ad563a1d14025df94d81e94d5f7721c;p=nncp.git SP transfers packets, not files --- 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 }