Setting defaults to current connection count

This commit is contained in:
Alex Renoki 2020-08-28 14:11:09 +03:00
parent f3b0608595
commit 00faff7f04
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class RedisStatisticsLogger implements StatisticsLogger
$currentPeakConnectionCount = $this->redis->hget($this->getHash($appId), 'peak_connection_count');
$peakConnectionCount = is_null($currentPeakConnectionCount)
? 1
? $currentConnectionCount
: max($currentPeakConnectionCount, $currentConnectionCount);
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
@ -103,7 +103,7 @@ class RedisStatisticsLogger implements StatisticsLogger
$currentPeakConnectionCount = $this->redis->hget($this->getHash($appId), 'peak_connection_count');
$peakConnectionCount = is_null($currentPeakConnectionCount)
? 0
? $currentConnectionCount
: max($currentPeakConnectionCount, $currentConnectionCount);
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);