Skip to content

Commit a79f557

Browse files
committed
fix: number conversion bug
1 parent d8e01e6 commit a79f557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl CertFacade {
107107
Some(mut cert) => {
108108
// use constant variables
109109
let now = to_i64(&now());
110-
let one_hour_ago = now - to_i64(&HOUR);
110+
let one_hour_ago = now - HOUR as i64;
111111
if cert.update < one_hour_ago {
112112
cert.update = now;
113113
cert.state = State::Updating;

0 commit comments

Comments
 (0)