function _memcache_admin_stats_counters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 modules/memcache/memcache_admin/memcache_admin.module \_memcache_admin_stats_counters()
Statistics report: calculate # of increments and decrements.
1 call to _memcache_admin_stats_counters()
- memcache_admin_stats in modules/
memcache/ memcache_admin/ memcache_admin.module - Memcache Stats page
File
- modules/
memcache/ memcache_admin/ memcache_admin.module, line 168
Code
function _memcache_admin_stats_counters($stats) {
$stats += array(
'incr_hits' => 0,
'incr_misses' => 0,
'decr_hits' => 0,
'decr_misses' => 0,
);
return t('!incr increments, !decr decrements', array(
'!incr' => number_format($stats['incr_hits'] + $stats['incr_misses']),
'!decr' => number_format($stats['decr_hits'] + $stats['decr_misses']),
));
}