From ce41b6ad40a522f5d3c5f75b86a24d159f3e8ea5 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 13 Jun 2020 22:45:22 -0700 Subject: [PATCH] Show max viewers --- webroot/index.html | 2 ++ webroot/js/app.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webroot/index.html b/webroot/index.html index 77b432c5c..28714cfed 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -74,6 +74,8 @@
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}. + Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }}, + {{ overallMaxViewerCount }} overall.
diff --git a/webroot/js/app.js b/webroot/js/app.js index 64f9f20f3..7b6bf8962 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -59,7 +59,9 @@ async function getStatus() { : "Stream is offline." app.viewerCount = status.viewerCount - + app.sessionMaxViewerCount = status.sessionMaxViewerCount + app.overallMaxViewerCount = status.overallMaxViewerCount + } catch (e) { app.streamStatus = "Stream server is offline." app.viewerCount = 0