summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-06-07 09:06:56 +0200
committerlassulus <lassulus@lassul.us>2021-06-07 09:06:56 +0200
commit4a3fef3881b26daa77a7c36bbfafc7fadf5a2f21 (patch)
tree9669ba4448fd8a857d8dc23dc459a9a4d0f3a55b /lass/2configs
parent2bd87750465c09ef975ac278c80040222c46ee98 (diff)
l radio: fix counting of listeners
Diffstat (limited to 'lass/2configs')
-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 5affdb8cd..a474b0ebc 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' | wc -l)
+ listeners=$(${pkgs.iproute}/bin/ss -Hno state established 'sport = :8000' | grep '^mptcp' | wc -l)
echo "$(date -Is)" "$track" | tee -a "$HISTORY_FILE"
echo "$(tail -$LIMIT "$HISTORY_FILE")" > "$HISTORY_FILE"
${set_irc_topic} "playing: $track listeners: $listeners"