From 08203c4be0af01821f9c3f43ec52e32f6be2afa1 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 11 May 2024 04:38:08 +0400 Subject: [PATCH] Also return a current peak listeners number. --- internal/radio/listener_counter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/radio/listener_counter.go b/internal/radio/listener_counter.go index c423ef8..cc10bc6 100644 --- a/internal/radio/listener_counter.go +++ b/internal/radio/listener_counter.go @@ -86,8 +86,10 @@ func (l *ListenerCounter) MarshalJSON() ([]byte, error) { Current int64 `json:"current"` Peak int64 `json:"peak"` Overall int64 `json:"overall"` + CurPeak int64 `json:"current_peak"` }{ Current: l.current, Peak: l.peak, - Overall: l.overall}) + Overall: l.overall, + CurPeak: l.cur_peak}) }