We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
div_ceil
1 parent b21205e commit ca137aaCopy full SHA for ca137aa
stacks-signer/src/signerdb.rs
@@ -1264,7 +1264,7 @@ impl SignerDb {
1264
// Plus (ms + 999)/1000 to round up to the nearest second
1265
let tenure_extend_timestamp = tenure_start_time
1266
.saturating_add(tenure_idle_timeout_secs)
1267
- .saturating_add(tenure_process_time_ms.saturating_add(999) / 1000);
+ .saturating_add(tenure_process_time_ms.div_ceil(1000));
1268
debug!("Calculated tenure extend timestamp";
1269
"tenure_extend_timestamp" => tenure_extend_timestamp,
1270
"tenure_start_time" => tenure_start_time,
0 commit comments