Skip to content

Commit

Permalink
format files adhering to clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenna Keshava B S committed Jul 19, 2022
1 parent 0c042cd commit 1095f74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions src/ripple/app/misc/NetworkOPs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,8 @@ NetworkOPsImp::pubServer()
mulDiv(
f.em->openLedgerFeeLevel,
f.loadBaseServer,
f.em->referenceFeeLevel).value_or(std::numeric_limits<std::uint64_t>::max()));
f.em->referenceFeeLevel)
.value_or(std::numeric_limits<std::uint64_t>::max()));

jvObj[jss::load_factor] = trunc32(loadFactor);
jvObj[jss::load_factor_fee_escalation] =
Expand Down Expand Up @@ -2476,10 +2477,12 @@ NetworkOPsImp::getServerInfo(bool human, bool admin, bool counters)
/* Scale the escalated fee level to unitless "load factor".
In practice, this just strips the units, but it will continue
to work correctly if either base value ever changes. */
auto const loadFactorFeeEscalation = mulDiv(
escalationMetrics.openLedgerFeeLevel,
loadBaseServer,
escalationMetrics.referenceFeeLevel).value_or(std::numeric_limits<std::uint64_t>::max());
auto const loadFactorFeeEscalation =
mulDiv(
escalationMetrics.openLedgerFeeLevel,
loadBaseServer,
escalationMetrics.referenceFeeLevel)
.value_or(std::numeric_limits<std::uint64_t>::max());

auto const loadFactor = std::max(
safe_cast<std::uint64_t>(loadFactorServer),
Expand Down
4 changes: 2 additions & 2 deletions src/ripple/app/tx/impl/DeleteAccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ DeleteAccount::calculateBaseFee(ReadView const& view, STTx const& tx)
if (mulDivResult)
return *mulDivResult;

// If mulDiv does not contain a value, then overflow happened. Punt by using the
// standard calculation.
// If mulDiv does not contain a value, then overflow happened. Punt by
// using the standard calculation.
return Transactor::calculateBaseFee(view, tx);
}

Expand Down

0 comments on commit 1095f74

Please sign in to comment.