Differential D11769 Diff 28400 src/applications/notification/controller/PhabricatorNotificationStatusController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationStatusController.php
| Show All 38 Lines | private function renderServerStatus(array $status) { | ||||
| $rows = array(); | $rows = array(); | ||||
| foreach ($status as $key => $value) { | foreach ($status as $key => $value) { | ||||
| switch ($key) { | switch ($key) { | ||||
| case 'uptime': | case 'uptime': | ||||
| $value /= 1000; | $value /= 1000; | ||||
| $value = phutil_format_relative_time_detailed($value); | $value = phutil_format_relative_time_detailed($value); | ||||
| break; | break; | ||||
| case 'log': | case 'log': | ||||
| case 'instance': | |||||
| break; | break; | ||||
| default: | default: | ||||
| $value = number_format($value); | $value = number_format($value); | ||||
| break; | break; | ||||
| } | } | ||||
| $rows[] = array($key, $value); | $rows[] = array($key, $value); | ||||
| } | } | ||||
| Show All 29 Lines | |||||