Commit 7f3dc867 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Return 0 for no cache hits, not undef

parent dca4af80
......@@ -241,7 +241,7 @@ sub getHitRatio
# Get counter
$res = $cache->get('Cache/Stats/Hit');
$res = defined($cache->get('Cache/Stats/Hit')) ? $cache->get('Cache/Stats/Hit') : 0;
return $res;
}
......@@ -254,7 +254,7 @@ sub getMissRatio
# Get counter
$res = $cache->get('Cache/Stats/Miss');
$res = defined($cache->get('Cache/Stats/Miss')) ? $cache->get('Cache/Stats/Miss') : 0;
return $res;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment