summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-07-05 14:47:08 +0200
committerlassulus <lassulus@lassul.us>2021-07-05 14:47:08 +0200
commit0382e74b1264773c5598279254a92cc78b2e1576 (patch)
tree5712b779c6c4c82bfdec4b98af8cf06d861fbb6a /lass
parent6fb30b6ace819cf6407f9175978f08aba2819169 (diff)
l radio: fix listener counting
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/radio.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index a474b0ebc..2c539917a 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -225,7 +225,7 @@ in {
${pkgs.mpc_cli}/bin/mpc idle player > /dev/null
${pkgs.mpc_cli}/bin/mpc current -f %file%
done | while read track; do
- listeners=$(${pkgs.iproute}/bin/ss -Hno state established 'sport = :8000' | grep '^mptcp' | wc -l)
+ listeners=$(${pkgs.iproute}/bin/ss -Hno state established 'sport = :8000' | grep '^tcp' | wc -l)
echo "$(date -Is)" "$track" | tee -a "$HISTORY_FILE"
echo "$(tail -$LIMIT "$HISTORY_FILE")" > "$HISTORY_FILE"
${set_irc_topic} "playing: $track listeners: $listeners"