MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / getClientStats

Function getClientStats

frontend/src/utils/pages/StatsUtils.js:119–131  ·  view source on GitHub ↗
(stats)

Source from the content-addressed store, hash-verified

117};
118
119export const getClientStats = (stats) => {
120 return Object.values(stats).reduce((acc, ch) => {
121 if (ch.clients && Array.isArray(ch.clients)) {
122 return acc.concat(
123 ch.clients.map((client) => ({
124 ...client,
125 channel: ch,
126 }))
127 );
128 }
129 return acc;
130 }, []);
131};
132
133export const getStatsByChannelId = (
134 channelStats,

Callers 1

StatsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected