]> Cypherpunks repositories - nncp.git/commitdiff
SP transfers packets, not files
authorSergey Matveev <stargrave@stargrave.org>
Sun, 8 Jan 2017 09:30:54 +0000 (12:30 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 8 Jan 2017 09:30:54 +0000 (12:30 +0300)
src/cypherpunks.ru/nncp/humanizer.go

index 2be3ac21afe8b258f5d78218260fd3c56fa2b6e1..87a20c2f6032e2f9f8ac52ae6105b527a91df5d8 100644 (file)
@@ -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
                }