Skip to content

Commit

Permalink
fix: number conversion bug (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
conblem authored Oct 12, 2020
1 parent bf7002b commit 1fa0a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl CertFacade {
Some(mut cert) => {
// use constant variables
let now = to_i64(&now());
let one_hour_ago = now - to_i64(&HOUR);
let one_hour_ago = now - HOUR as i64;
if cert.update < one_hour_ago {
cert.update = now;
cert.state = State::Updating;
Expand Down

0 comments on commit 1fa0a3f

Please sign in to comment.