]> Cypherpunks.ru repositories - nncp.git/commitdiff
Fifx nncp-file -minsize specified in bytes, instead of KiBs
authorSergey Matveev <stargrave@stargrave.org>
Wed, 17 May 2017 14:44:33 +0000 (17:44 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 17 May 2017 15:46:15 +0000 (18:46 +0300)
VERSION
doc/news.ru.texi
doc/news.texi
doc/russian.texi
ports/nncp/Makefile
src/cypherpunks.ru/nncp/cmd/nncp-file/main.go
src/cypherpunks.ru/nncp/cmd/nncp-freq/main.go
src/cypherpunks.ru/nncp/cmd/nncp-mail/main.go

diff --git a/VERSION b/VERSION
index eb49d7c7fdcbb1b4745de39837864aa7f78570ac..aec258df73d39d2122706793921981f4a0f672f8 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.7
+0.8
index 2f6bc2e9d262b774ca03d05a7740e1b20520a753..cae730d0108cec0eeda0284ab49b5f3a27e34c91 100644 (file)
@@ -1,6 +1,15 @@
 @node Новости
 @section Новости
 
+@node Релиз 0.8
+@subsection Релиз 0.8
+@itemize
+@item
+Небольшое исправление ошибки в команде @command{nncp-file}, где опция
+@option{-minsize} для передачи без разбиения на части была в байтах, а
+не KiB-ах.
+@end itemize
+
 @node Релиз 0.7
 @subsection Релиз 0.7
 @itemize
index 7bd287ce0ec758d7007e3edeb687f27d1903d873..0358a6c1cf865e0b4877d790d52a1b996cf91f89 100644 (file)
@@ -3,6 +3,14 @@
 
 See also this page @ref{Новости, on russian}.
 
+@node Release 0.8
+@section Release 0.8
+@itemize
+@item
+Little bugfix in @command{nncp-file} command, where @option{-minsize}
+option for unchunked transfer was not in KiBs, but in bytes.
+@end itemize
+
 @node Release 0.7
 @section Release 0.7
 @itemize
index 34983b6e7996f1808317c2461ee629f649f14f13..6c726683f145fe148ce5471dff247808f76eccda 100644 (file)
@@ -4,7 +4,7 @@
 @menu
 * Подробнее об утилитах NNCP: Об утилитах.
 * Сравнение с существующими решениями: Сравнение.
-* Сценарии: Сценарии использования.
+* Сценарии использования: Сценарии.
 * Новости::
 @end menu
 
index 3738689a2fe30c54fb2f90758a944504f5520ae7..e4086f77acb708d40f317cdd40a9dd4e983c7a5d 100644 (file)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=      nncp
-PORTVERSION=   0.7
+PORTVERSION=   0.8
 CATEGORIES=    net
 MASTER_SITES=  http://www.nncpgo.org/download/ \
                http://sourceforge.net/projects/nncp/files/
index f3406fd455aa53cd6cb8ff9300d2b8d125ad0a0f..d922882fec7a3a301e9c793cddfc378ee122de61 100644 (file)
@@ -95,7 +95,13 @@ func main() {
        }
 
        if *chunkSize == 0 {
-               err = ctx.TxFile(node, nice, flag.Arg(0), splitted[1], int64(*minSize))
+               err = ctx.TxFile(
+                       node,
+                       nice,
+                       flag.Arg(0),
+                       splitted[1],
+                       int64(*minSize)*1024,
+               )
        } else {
                err = ctx.TxFileChunked(
                        node,
index a5e96e69aed5e05fdf5137ae955579cf023b5d6f..8318191009af9b45f265307a52d61ba34850c657 100644 (file)
@@ -90,7 +90,13 @@ func main() {
                log.Fatalln("Invalid NODE specified:", err)
        }
 
-       if err = ctx.TxFreq(node, nice, splitted[1], flag.Arg(1), int64(*minSize)*1024); err != nil {
+       if err = ctx.TxFreq(
+               node,
+               nice,
+               splitted[1],
+               flag.Arg(1),
+               int64(*minSize)*1024,
+       ); err != nil {
                log.Fatalln(err)
        }
 }
index d14c3d66c077cb205d76f4f956a117e97005cd68..f5f4de791d1e8023d75f8b34a6eaeaed018896e4 100644 (file)
@@ -91,7 +91,13 @@ func main() {
                log.Fatalln("Can not read mail body from stdin:", err)
        }
 
-       if err = ctx.TxMail(node, nice, strings.Join(flag.Args()[1:], " "), body, int64(*minSize)*1024); err != nil {
+       if err = ctx.TxMail(
+               node,
+               nice,
+               strings.Join(flag.Args()[1:], " "),
+               body,
+               int64(*minSize)*1024,
+       ); err != nil {
                log.Fatalln(err)
        }
 }