Skip to content

Commit b555940

Browse files
committed
Fix #36
1 parent de6f02c commit b555940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dashboards/Redis/RedisTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private function panels(): string {
5656
$hit_rate = $total !== 0 ? round(($hits / $total) * 100, 2) : 0;
5757

5858
$redis_mode = isset($info['server']['redis_mode']) ? ', '.$info['server']['redis_mode'].' mode' : '';
59+
$maxclients = isset($info['clients']['maxclients']) ? ' / '.Format::number((int) $info['clients']['maxclients']) : '';
5960

6061
$panels = [
6162
[
@@ -83,8 +84,7 @@ private function panels(): string {
8384
[
8485
'title' => 'Stats',
8586
'data' => [
86-
'Connected clients' => Format::number((int) $info['clients']['connected_clients']).' / '.
87-
Format::number((int) $info['clients']['maxclients']),
87+
'Connected clients' => Format::number((int) $info['clients']['connected_clients']).$maxclients,
8888
'Blocked clients' => Format::number((int) $info['clients']['blocked_clients']),
8989
'Total connections received' => Format::number((int) $info['stats']['total_connections_received']),
9090
'Total commands processed' => Format::number((int) $info['stats']['total_commands_processed']),

0 commit comments

Comments
 (0)