Remove unsigned division from FeeCalculator (#5851)

This commit is contained in:
Jack May 2019-09-09 15:07:32 -07:00 committed by GitHub
parent b13c690f0c
commit a18cd29411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ impl FeeCalculator {
// TODO: Is this fee curve smooth enough or too smooth? // TODO: Is this fee curve smooth enough or too smooth?
// //
let gap_adjust = let gap_adjust =
std::cmp::max(1, me.target_lamports_per_signature as i64 / 20) * gap.signum(); std::cmp::max(1, me.target_lamports_per_signature / 20) as i64 * gap.signum();
trace!( trace!(
"lamports_per_signature gap is {}, adjusting by {}", "lamports_per_signature gap is {}, adjusting by {}",