Skip to content

Commit febf41f

Browse files
authored
Merge pull request #1973 from magento-performance/MAGETWO-85904-2.1
[Performance] Stabilize PAT tideways metrics [2.1-develop]
2 parents 29e8cab + abd888b commit febf41f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Security/Model/AdminSessionsManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private function getIntervalBetweenConsecutiveProlongs()
328328
return (float) max(
329329
1,
330330
min(
331-
log((float)$this->securityConfig->getAdminSessionLifetime()),
331+
4 * log((float)$this->securityConfig->getAdminSessionLifetime()),
332332
$this->maxIntervalBetweenConsecutiveProlongs
333333
)
334334
);

dev/tests/integration/testsuite/Magento/Security/Model/Plugin/AuthSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testProcessProlong()
132132
\Magento\TestFramework\Bootstrap::ADMIN_PASSWORD
133133
);
134134
$sessionId = $this->authSession->getSessionId();
135-
$prolongsDiff = log($this->securityConfig->getAdminSessionLifetime()) + 2; // X from comment above
135+
$prolongsDiff = 4 * log($this->securityConfig->getAdminSessionLifetime()) + 2; // X from comment above
136136
$dateInPast = $this->dateTime->formatDate($this->authSession->getUpdatedAt() - $prolongsDiff);
137137
$this->adminSessionsManager->getCurrentSession()
138138
->setData(

0 commit comments

Comments
 (0)