mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Move DecayingSample to algorithm
This commit is contained in:
@@ -2099,6 +2099,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\ripple\algorithm\api\CycledSet.h" />
|
||||
<ClInclude Include="..\..\src\ripple\algorithm\api\DecayingSample.h" />
|
||||
<ClInclude Include="..\..\src\ripple\algorithm\api\DiscreteClock.h" />
|
||||
<ClInclude Include="..\..\src\ripple\http\api\Handler.h" />
|
||||
<ClInclude Include="..\..\src\ripple\http\api\Server.h" />
|
||||
@@ -2151,7 +2152,6 @@
|
||||
<ClInclude Include="..\..\src\ripple\resource\api\LegacyFees.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\api\Manager.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\api\Types.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\DecayingSample.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\Entry.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\Import.h" />
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\Key.h" />
|
||||
|
||||
@@ -2502,9 +2502,6 @@
|
||||
<ClInclude Include="..\..\src\ripple\resource\api\Manager.h">
|
||||
<Filter>[1] Ripple\resource\api</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\DecayingSample.h">
|
||||
<Filter>[1] Ripple\resource\impl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\ripple\resource\impl\Kind.h">
|
||||
<Filter>[1] Ripple\resource\impl</Filter>
|
||||
</ClInclude>
|
||||
@@ -2850,6 +2847,9 @@
|
||||
<ClInclude Include="..\..\src\ripple_app\ledger\LedgerCleaner.h">
|
||||
<Filter>[2] Old Ripple\ripple_app\ledger</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\ripple\algorithm\api\DecayingSample.h">
|
||||
<Filter>[1] Ripple\algorithm\api</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\src\ripple_data\protocol\ripple.proto">
|
||||
|
||||
@@ -17,11 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_RESOURCE_DECAYINGSAMPLE_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_DECAYINGSAMPLE_H_INCLUDED
|
||||
#ifndef RIPPLE_ALGORITHM_DECAYINGSAMPLE_H_INCLUDED
|
||||
#define RIPPLE_ALGORITHM_DECAYINGSAMPLE_H_INCLUDED
|
||||
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
/** Sampling function using exponential decay to provide a continuous value. */
|
||||
template <int Window,
|
||||
@@ -92,7 +91,6 @@ private:
|
||||
elapsed_type m_when;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "ripple_resource.h"
|
||||
|
||||
#include "../algorithm/api/DecayingSample.h"
|
||||
#include "../algorithm/api/DiscreteClock.h"
|
||||
|
||||
#include "beast/modules/beast_core/system/BeforeBoost.h"
|
||||
@@ -29,7 +30,6 @@
|
||||
#include "impl/Fees.cpp"
|
||||
# include "impl/Kind.h"
|
||||
# include "impl/Key.h"
|
||||
# include "impl/DecayingSample.h"
|
||||
# include "impl/Tuning.h"
|
||||
# include "impl/Entry.h"
|
||||
# include "impl/Import.h"
|
||||
|
||||
Reference in New Issue
Block a user