Commit 039b933
committed
fix(stats): skip silence penalty for transcoded outputs
Transcoded mounts gate their encoder on listener count (transcode.go
EncodeMP3 / EncodeOpus return early when ListenersCount()==0), so
LastDataReceived doesn't tick while the mount is idle. The 2%/s
silence penalty (kicking in after 5s) then accumulates against a
perfectly healthy mount nobody happens to be listening to, surfacing
as 50-60% health in the dashboard for an idle /electronica-mp3-128.
Skip the silence-penalty branch for streams flagged IsTranscoded.
The upstream source mount still has its own silence-penalty health,
which reflects real-source stalls. Loss-ratio (BytesIn / (BytesIn
+ BytesDropped)) still applies to transcoded outputs so a slow
listener that wraps the buffer is still visible.1 parent b8c7371 commit 039b933
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments