library/Odesk/Phystrix/MetricsCounter.php
private function getBucketIndex($bucketNumber, $time)
    {
        // Getting unique bucket index
        return floor(($time - $bucketNumber * $this->bucketInMilliseconds) / $this->bucketInMilliseconds);
    }
private function getBucketIndex($bucketNumber, $time)
    {
        // Getting unique bucket index
        return floor(($time - $bucketNumber * $this->bucketInMilliseconds) / $this->bucketInMilliseconds);
    }
private function getBucketIndex ( $ bucketNumber , $ time ) { // Getting unique bucket index return floor ( ( $ time - $ bucketNumber * $ this -> bucketInMilliseconds ) / $ this -> bucketInMilliseconds ) ; }
Gets unique bucket index by current time and bucket sequential number in the statistical window

@param integer $bucketNumber
@param integer $time Current time in milliseconds
@return float
Gets unique bucket index by current time and bucket sequential number in the statistical window