and let it mean that we will always reverify
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
.schema();
pub const VERIFICATION_OUTDATED_AFTER_SCHEMA: Schema = IntegerSchema::new(
- "Days after that a verification becomes outdated")
- .minimum(1)
+ "Days after that a verification becomes outdated. (0 means always)")
+ .minimum(0)
.schema();
#[api(
let now = proxmox_time::epoch_i64();
let days_since_last_verify = (now - last_verify.upid.starttime) / 86400;
- days_since_last_verify > max_age
+ max_age == 0 || days_since_last_verify > max_age
}
}
}