Проверка доступного места перед копированием во время работы
@command{nncp-xfer}, @command{nncp-daemon}, @command{nncp-call(er)}.
@item
-@command{nncp-call} теперь может только показывать список пакетов на
-удалённой машине, без их передачи.
+@command{nncp-call} имеет возможность только показывать список пакетов
+на удалённой машине, без их передачи.
@item
-@command{nncp-call} можеÑ\82 Ñ\81каÑ\87ивать только чётко указанные пакеты.
+@command{nncp-call} имееÑ\82 возможноÑ\81Ñ\82Ñ\8c пеÑ\80едавать только чётко указанные пакеты.
@item
Восстановлена работоспособность @option{xxrate} настройки в
@option{calls} секции конфигурационного файла.
Available free space checking before copying in @command{nncp-xfer},
@command{nncp-daemon}, @command{nncp-call(er)}.
@item
-@command{nncp-call} has ability only to listen packets on remote node,
-without its transmission.
+@command{nncp-call} has ability only to list packets on remote node,
+without their transmission.
@item
-@command{nncp-call} has ability to download only specified packets.
+@command{nncp-call} has ability to transfer only specified packets.
@item
Workability of @option{xxrate} preference in @option{calls}
configuration file section.
state.Ctx.LogD("sp-process", sdsp, "queueing")
nice, exists := state.infosOurSeen[*freq.Hash]
if exists {
- state.Lock()
- insertIdx := 0
- var freqWithNice *FreqWithNice
- for insertIdx, freqWithNice = range state.queueTheir {
- if freqWithNice.nice > nice {
- break
+ if state.onlyPkts == nil || !state.onlyPkts[*freq.Hash] {
+ state.Lock()
+ insertIdx := 0
+ var freqWithNice *FreqWithNice
+ for insertIdx, freqWithNice = range state.queueTheir {
+ if freqWithNice.nice > nice {
+ break
+ }
}
+ state.queueTheir = append(state.queueTheir, nil)
+ copy(state.queueTheir[insertIdx+1:], state.queueTheir[insertIdx:])
+ state.queueTheir[insertIdx] = &FreqWithNice{&freq, nice}
+ state.Unlock()
+ } else {
+ state.Ctx.LogD("sp-process", sdsp, "skipping")
}
- state.queueTheir = append(state.queueTheir, nil)
- copy(state.queueTheir[insertIdx+1:], state.queueTheir[insertIdx:])
- state.queueTheir[insertIdx] = &FreqWithNice{&freq, nice}
- state.Unlock()
} else {
state.Ctx.LogD("sp-process", sdsp, "unknown")
}