Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop

This commit is contained in:
JoelKatz
2013-05-22 14:37:11 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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()