Tweak useful idiotbox technology. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 092b6fe252646f5349ee48d347f4d92d555b2765 DIR parent 1e01eb48430a06a8e2ec480a2e6d8d62e024bb95 HTML Author: eidolon <?> Date: Thu, 24 Oct 2024 13:28:54 -0400 Tweak useful idiotbox technology. Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M idiotbox-roulette | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/idiotbox-roulette b/idiotbox-roulette @@ -5,7 +5,7 @@ spin() { awk 'BEGIN { FS = "\t"; srand() } - /^h/ && !/^hAtom/ { if (rand() < 1 / ++n) out = $0 } + /^h/ && !/^hAtom/ { if (rand() < 1 / ++n) out = $1" "$2 } END { sub(/URL:/, "url: ", out); print substr(out, 2) }' }