You are here

private function MemcacheStatisticsController::statsConnections in Memcache API and Integration 8.2

Statistics report: format total and open connections.

File

memcache_admin/src/Controller/MemcacheStatisticsController.php, line 133

Class

MemcacheStatisticsController
Memcache Statistics.

Namespace

Drupal\memcache_admin\Controller

Code

private function statsConnections($stats) {
  return $this
    ->t('@current open of @total total', [
    '@current' => number_format($stats['curr_connections']),
    '@total' => number_format($stats['total_connections']),
  ]);
}