mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Fix two minor bugs with reporting load fees.
This commit is contained in:
@@ -247,8 +247,8 @@ bool LoadFeeTrack::raiseLocalFee()
|
||||
boost::mutex::scoped_lock sl(mLock);
|
||||
uint32 origFee = mLocalTxnLoadFee;
|
||||
|
||||
if (mLocalTxnLoadFee < mLocalTxnLoadFee) // make sure this fee takes effect
|
||||
mLocalTxnLoadFee = mLocalTxnLoadFee;
|
||||
if (mLocalTxnLoadFee < mRemoteTxnLoadFee) // make sure this fee takes effect
|
||||
mLocalTxnLoadFee = mRemoteTxnLoadFee;
|
||||
|
||||
mLocalTxnLoadFee += (mLocalTxnLoadFee / lftFeeIncFraction); // increment by 1/16th
|
||||
|
||||
|
||||
@@ -1163,7 +1163,7 @@ Json::Value NetworkOPs::getServerInfo(bool human, bool admin)
|
||||
}
|
||||
else
|
||||
info["load_factor"] =
|
||||
static_cast<double>(theApp->getFeeTrack().getLoadBase()) / theApp->getFeeTrack().getLoadFactor();
|
||||
static_cast<double>(theApp->getFeeTrack().getLoadFactor()) / theApp->getFeeTrack().getLoadBase();
|
||||
|
||||
bool valid = false;
|
||||
Ledger::pointer lpClosed = getValidatedLedger();
|
||||
|
||||
Reference in New Issue
Block a user