mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-03 12:06:40 -04:00
small unit test refactoring, comment wording
This commit is contained in:
parent
91041d8c59
commit
190a35a53b
2 changed files with 8 additions and 3 deletions
|
@ -161,7 +161,7 @@ class TrafficLimiter extends AbstractPersistence
|
|||
}
|
||||
}
|
||||
|
||||
// this hash is used as an array key, hence a shorter algo is used
|
||||
// used as array key, which are limited in length, hence using algo with shorter range
|
||||
$hash = self::getHash('sha256');
|
||||
$now = time();
|
||||
$tl = (int) self::$_store->getValue('traffic_limiter', $hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue