mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#ifndef __SHAMAPYSNC__
|
#ifndef SHAMAPSYNC_H
|
||||||
#define __SHAMAPSYNC__
|
#define SHAMAPSYNC_H
|
||||||
|
|
||||||
#include "SHAMap.h"
|
#include "SHAMap.h"
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ template<typename c_Key, typename c_Data> int TaggedCache<c_Key, c_Data>::getTra
|
|||||||
template<typename c_Key, typename c_Data> float TaggedCache<c_Key, c_Data>::getHitRate()
|
template<typename c_Key, typename c_Data> float TaggedCache<c_Key, c_Data>::getHitRate()
|
||||||
{
|
{
|
||||||
boost::recursive_mutex::scoped_lock sl(mLock);
|
boost::recursive_mutex::scoped_lock sl(mLock);
|
||||||
return (static_cast<float>(mHits) * 100) / (1.0 + mHits + mMisses);
|
return (static_cast<float>(mHits) * 100) / (1.0f + mHits + mMisses);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename c_Key, typename c_Data> void TaggedCache<c_Key, c_Data>::clearStats()
|
template<typename c_Key, typename c_Data> void TaggedCache<c_Key, c_Data>::clearStats()
|
||||||
|
|||||||
Reference in New Issue
Block a user