X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FObjectCacheSessionHandler.php;h=2a5d69556fe74441590e49b2be9f054bdf94aae9;hb=6627978c77c4fea850507cb6cd6e1b8ee36ce748;hp=6a9b9a87b5b40d8a7380dae81bec770e7caa6847;hpb=c243573b5e8eebcd68d978d5d7a7e60b851b5a62;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/ObjectCacheSessionHandler.php b/includes/objectcache/ObjectCacheSessionHandler.php index 6a9b9a87b5..2a5d69556f 100644 --- a/includes/objectcache/ObjectCacheSessionHandler.php +++ b/includes/objectcache/ObjectCacheSessionHandler.php @@ -112,7 +112,7 @@ class ObjectCacheSessionHandler { $data = self::getCache()->get( self::getKey( $id ) ); $real = microtime( true ) - $stime; - RequestContext::getMain()->getStats()->timing( "session.read", $real ); + RequestContext::getMain()->getStats()->timing( "session.read", 1000 * $real ); self::$hashCache = array( $id => self::getHash( $data ) ); @@ -137,7 +137,7 @@ class ObjectCacheSessionHandler { self::getCache()->set( self::getKey( $id ), $data, $wgObjectCacheSessionExpiry ); $real = microtime( true ) - $stime; - RequestContext::getMain()->getStats()->timing( "session.write", $real ); + RequestContext::getMain()->getStats()->timing( "session.write", 1000 * $real ); } return true; @@ -154,7 +154,7 @@ class ObjectCacheSessionHandler { self::getCache()->delete( self::getKey( $id ) ); $real = microtime( true ) - $stime; - RequestContext::getMain()->getStats()->timing( "session.destroy", $real ); + RequestContext::getMain()->getStats()->timing( "session.destroy", 1000 * $real ); return true; }