]> Cypherpunks.ru repositories - nncp.git/commitdiff
Workability of xxrate in calls section
authorSergey Matveev <stargrave@stargrave.org>
Sat, 27 Apr 2019 21:02:16 +0000 (00:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 27 Apr 2019 21:02:16 +0000 (00:02 +0300)
doc/news.ru.texi
doc/news.texi
src/cypherpunks.ru/nncp/cfg.go

index 480a565f109d0f2d288d6ce94b94ecc1e7df7da3..832d30e85b83e55dced56379cb84dd9308827f9f 100644 (file)
@@ -19,6 +19,9 @@
 @item
 @command{nncp-call} может скачивать только чётко указанные пакеты.
 @item
+Восстановлена работоспособность @option{xxrate} настройки в
+@option{calls} секции конфигурационного файла.
+@item
 Зависимые библиотеки обновлены.
 @item
 Небольшие исправления ошибок.
index baf52c094c514685a61d462ca91d0b3f30595a26..f087abe5b9aadd3181850ca5dd4833298b123da5 100644 (file)
@@ -20,6 +20,9 @@ without its transmission.
 @item
 @command{nncp-call} has ability to download only specified packets.
 @item
+Workability of @option{xxrate} preference in @option{calls}
+configuration file section.
+@item
 Dependant libraries are updated.
 @item
 Minor bugfixes.
index 9519f963a6d805d9a1b2eb880d2407e7b46ae38e..bcd547ec91c5e13cbc6052d69c6164e35e9c3f6f 100644 (file)
@@ -214,12 +214,12 @@ func NewNode(name string, yml NodeYAML) (*Node, error) {
                        return nil, errors.New("xx field must be either \"rx\" or \"tx\"")
                }
 
-               rxRate := 0
-               if callYml.RxRate != nil && *callYml.RxRate > 0 {
+               rxRate := defRxRate
+               if callYml.RxRate != nil {
                        rxRate = *callYml.RxRate
                }
-               txRate := 0
-               if callYml.TxRate != nil && *callYml.TxRate > 0 {
+               txRate := defTxRate
+               if callYml.TxRate != nil {
                        txRate = *callYml.TxRate
                }