]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/humanizer.go
Rename LLP to SP (some kind of Sync Protocol)
[nncp.git] / src / cypherpunks.ru / nncp / humanizer.go
index a3ebc8d743f385c0bcdf6f471d021415bbffd7a6..fc2ecd0ff9a54429ddf8af7ed5bb6646d2198aac 100644 (file)
@@ -177,7 +177,7 @@ func (ctx *Ctx) Humanize(s string) string {
                        humanize.IBytes(uint64(rx)), humanize.IBytes(uint64(rxs)),
                        humanize.IBytes(uint64(tx)), humanize.IBytes(uint64(txs)),
                )
-       case "llp-infos":
+       case "sp-infos":
                switch sds["xx"] {
                case "rx":
                        msg = fmt.Sprintf("%s has got for us: ", nodeS)
@@ -187,7 +187,7 @@ func (ctx *Ctx) Humanize(s string) string {
                        return s
                }
                msg += fmt.Sprintf("%s packets, %s", sds["pkts"], size)
-       case "llp-file":
+       case "sp-file":
                switch sds["xx"] {
                case "rx":
                        msg = "Got file "
@@ -211,7 +211,7 @@ func (ctx *Ctx) Humanize(s string) string {
                        humanize.IBytes(uint64(sizeParsed)),
                        humanize.IBytes(uint64(fullsize)),
                )
-       case "llp-done":
+       case "sp-done":
                switch sds["xx"] {
                case "rx":
                        msg = fmt.Sprintf("File %s is retreived (%s)", sds["hash"], size)