示例#1
0
 /**
  * Caches a single numeric record in the archive for this processor's site, period and
  * segment.
  *
  * Numeric values are not inserted if they equal `0`.
  *
  * @param string $name The name of the numeric value, eg, `'Referrers_distinctKeywords'`.
  * @param float $value The numeric value.
  * @api
  */
 public function insertNumericRecord($name, $value)
 {
     $value = round($value, 2);
     $this->archiveWriter->insertRecord($name, $value);
 }
示例#2
0
 /**
  * Caches a single numeric record in the archive for this processor's site, period and
  * segment.
  *
  * Numeric values are not inserted if they equal `0`.
  *
  * @param string $name The name of the numeric value, eg, `'Referrers_distinctKeywords'`.
  * @param float $value The numeric value.
  * @api
  */
 public function insertNumericRecord($name, $value)
 {
     $value = round($value, 2);
     $value = Common::forceDotAsSeparatorForDecimalPoint($value);
     $this->archiveWriter->insertRecord($name, $value);
 }