Skip to content

Commit

Permalink
fixup! More logging, and some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Oct 24, 2024
1 parent 2f9f16c commit 23e2139
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ripple/app/misc/impl/AmendmentTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ class TrustedVotes
else if (votes.second.timeout != newTimeout)
{
assert(votes.second.timeout < newTimeout);
auto const age = newTimeout - *votes.second.timeout;
JLOG(j.debug())
<< "recordVotes: Using " << age.count()
<< " s(?) old cached votes from " << pkHuman;
using namespace std::chrono;
auto const age = duration_cast<minutes>(
newTimeout - *votes.second.timeout);
JLOG(j.debug()) << "recordVotes: Using " << age.count()
<< "min old cached votes from " << pkHuman;
}
});
}
Expand Down

0 comments on commit 23e2139

Please sign in to comment.