function statistics_update_index

Implements hook_update_index().

File

drupal/core/modules/statistics/statistics.module, line 449
Logs and displays access statistics for a site.

Code

function statistics_update_index() {
  state()
    ->set('statistics.node_counter_scale', 1.0 / max(1, db_query('SELECT MAX(totalcount) FROM {node_counter}')
    ->fetchField()));
}