File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ' ]),
You can’t perform that action at this time.
0 commit comments