commit 6387b083d2d2d3488b8dc7ce31c041ec17d6cc7e
parent dfb02b659a44afe34176d010846de5c09992a147
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 11 Jun 2019 20:55:50 +0200
sfeed_update: clarify a comment about being non-optimal
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sfeed_update b/sfeed_update
@@ -76,8 +76,8 @@ order() {
# fetch and parse feed.
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {
- # wait until ${maxjobs} are finished: throughput using this logic is
- # non-optimal, but it is simple and portable.
+ # wait until ${maxjobs} are finished: will stall the queue if an item
+ # is slow, but it is portable.
[ ${signo} -ne 0 ] && return
[ $((curjobs % maxjobs)) -eq 0 ] && wait
[ ${signo} -ne 0 ] && return