]> Cypherpunks.ru repositories - nncp.git/commitdiff
Do not print queued packet niceness, it is not useful
authorSergey Matveev <stargrave@stargrave.org>
Sun, 8 Jan 2017 09:25:00 +0000 (12:25 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 8 Jan 2017 09:25:00 +0000 (12:25 +0300)
src/cypherpunks.ru/nncp/humanizer.go

index fc2ecd0ff9a54429ddf8af7ed5bb6646d2198aac..2be3ac21afe8b258f5d78218260fd3c56fa2b6e1 100644 (file)
@@ -76,18 +76,18 @@ func (ctx *Ctx) Humanize(s string) string {
                switch sds["type"] {
                case "file":
                        msg = fmt.Sprintf(
-                               "File %s (%s) transfer to %s:%s (nice %s): %s",
-                               sds["src"], size, nodeS, sds["dst"], sds["nice"], rem,
+                               "File %s (%s) transfer to %s:%s: %s",
+                               sds["src"], size, nodeS, sds["dst"], rem,
                        )
                case "freq":
                        msg = fmt.Sprintf(
-                               "File request from %s:%s to %s (nice %s): %s",
-                               nodeS, sds["src"], sds["dst"], sds["nice"], rem,
+                               "File request from %s:%s to %s: %s",
+                               nodeS, sds["src"], sds["dst"], rem,
                        )
                case "mail":
                        msg = fmt.Sprintf(
-                               "Mail to %s@%s (%s) (nice %s): %s",
-                               nodeS, strings.Replace(sds["dst"], " ", ",", -1), size, sds["nice"], rem,
+                               "Mail to %s@%s (%s): %s",
+                               nodeS, strings.Replace(sds["dst"], " ", ",", -1), size, rem,
                        )
                case "trns":
                        msg = fmt.Sprintf(