Changeset View
Changeset View
Standalone View
Standalone View
src/channel/PhutilMetricsChannel.php
Context not available. | |||||
*/ | */ | ||||
public function read() { | public function read() { | ||||
$buffer = parent::read(); | $buffer = parent::read(); | ||||
$this->bytesRead += strlen($buffer); | $this->bytesRead += @strlen($buffer); | ||||
return $buffer; | return $buffer; | ||||
} | } | ||||
Context not available. | |||||
* @task impl | * @task impl | ||||
*/ | */ | ||||
public function write($message) { | public function write($message) { | ||||
$this->bytesWritten += strlen($message); | $this->bytesWritten += @strlen($message); | ||||
return parent::write($message); | return parent::write($message); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0