This commit is contained in:
Marcel Pociot 2018-12-04 08:46:25 +01:00
parent 51232d6653
commit e1eecbc4e2
2 changed files with 11 additions and 2 deletions

View File

@ -152,7 +152,14 @@
y: data.peak_connections.y, y: data.peak_connections.y,
mode: 'lines', mode: 'lines',
line: {color: '#80CAF6'} line: {color: '#80CAF6'}
}]); }], {
margin: {
l: 0,
r: 0,
b: 0,
t: 50,
pad: 4
} });
}); });
}, },

View File

@ -49,7 +49,9 @@ class ChannelManager
public function getConnectionCount(string $appId): int public function getConnectionCount(string $appId): int
{ {
return collect($this->getChannels($appId)) return collect($this->getChannels($appId))
->sum->getSubscribedConnections(); ->sum(function ($channel) {
return count($channel->getSubscribedConnections());
});
} }
public function removeFromAllChannels(ConnectionInterface $connection) public function removeFromAllChannels(ConnectionInterface $connection)