adapt compute_next_event to new signature
the 'utc' flag is now contained in the event itself and not given as a flag to 'compute_next_event' anymore Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
c72f8784a5
commit
7549114c9f
@ -533,7 +533,7 @@ impl Inventory {
|
||||
set_start_time
|
||||
}
|
||||
MediaSetPolicy::CreateAt(ref event) => {
|
||||
match event.compute_next_event(set_start_time, false) {
|
||||
match event.compute_next_event(set_start_time) {
|
||||
Ok(Some(next)) => next,
|
||||
Ok(None) | Err(_) => return i64::MAX,
|
||||
}
|
||||
|
@ -290,7 +290,7 @@ impl MediaPool {
|
||||
}
|
||||
MediaSetPolicy::CreateAt(event) => {
|
||||
if let Some(set_start_time) = self.inventory.media_set_start_time(&self.current_media_set.uuid()) {
|
||||
if let Ok(Some(alloc_time)) = event.compute_next_event(set_start_time as i64, false) {
|
||||
if let Ok(Some(alloc_time)) = event.compute_next_event(set_start_time as i64) {
|
||||
if current_time >= alloc_time {
|
||||
create_new_set = Some(String::from("policy CreateAt event triggered"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user