You are here

public function RuntimeMeasurementInterface::getSafeTimeHintValue in Purge 8.3

Return a value safe for time hints, between 0.1 and 10.00.

Parameters

float $value: The measurement value.

Return value

float The same value or 0.1 or 10.0 when it exceeded either boundary.

See also

\Drupal\purge\Plugin\Purge\Purger\PurgerCapacityDataInterface::getTimeHint()

1 method overrides RuntimeMeasurementInterface::getSafeTimeHintValue()
RuntimeMeasurement::getSafeTimeHintValue in src/Plugin/Purge/Purger/RuntimeMeasurement.php
Return a value safe for time hints, between 0.1 and 10.00.

File

src/Plugin/Purge/Purger/RuntimeMeasurementInterface.php, line 23

Class

RuntimeMeasurementInterface
Describes a execution time measurer for invalidation processing.

Namespace

Drupal\purge\Plugin\Purge\Purger

Code

public function getSafeTimeHintValue($value);