summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-23 19:06:07 +0100
committerlassulus <lassulus@lassul.us>2021-01-23 19:06:07 +0100
commitea59935e5f57dfc03db3367f187ffaffafcc67a2 (patch)
tree353b44748011da314daed8443b47175081f37587
parent3c539a34f83862b577ea4c8291788c7ba253ee1f (diff)
l radio: simplify listeners counting
-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 8c95b535d..6a020692a 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -200,7 +200,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' | wc -l)
echo "$(date -Is)" "$track" | tee -a "$HISTORY_FILE"
echo "$(tail -$LIMIT "$HISTORY_FILE")" > "$HISTORY_FILE"
${write_to_irc} "playing: $track listeners: $listeners"