Changeset View
Changeset View
Standalone View
Standalone View
src/applications/multimeter/data/MultimeterControl.php
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | public function saveEvents() { | ||||
$this->unpauseMultimeter(); | $this->unpauseMultimeter(); | ||||
if ($caught) { | if ($caught) { | ||||
throw $caught; | throw $caught; | ||||
} | } | ||||
} | } | ||||
private function writeEvents() { | private function writeEvents() { | ||||
if (PhabricatorEnv::isReadOnly()) { | |||||
return; | |||||
} | |||||
$events = $this->events; | $events = $this->events; | ||||
$random = Filesystem::readRandomBytes(32); | $random = Filesystem::readRandomBytes(32); | ||||
$request_key = PhabricatorHash::digestForIndex($random); | $request_key = PhabricatorHash::digestForIndex($random); | ||||
$host_id = $this->loadHostID(php_uname('n')); | $host_id = $this->loadHostID(php_uname('n')); | ||||
$context_id = $this->loadEventContextID($this->eventContext); | $context_id = $this->loadEventContextID($this->eventContext); | ||||
$viewer_id = $this->loadEventViewerID($this->eventViewer); | $viewer_id = $this->loadEventViewerID($this->eventViewer); | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |