Skip to content

Commit

Permalink
Rename target_acquisition_duration to target_acquisition_latency
Browse files Browse the repository at this point in the history
  • Loading branch information
ypo committed Nov 15, 2024
1 parent 7f6acc8 commit 793d54c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/sender/filedesc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ impl FileDesc {
}

let mut packet_transmission_tick = None;
if let Some(target_acquisition_duration) = object.target_acquisition_duration.as_ref() {
if let Some(target_acquisition_latency) = object.target_acquisition_latency.as_ref() {
let nb_packets = object
.transfer_length
.div_ceil(oti.encoding_symbol_length as u64);
// TODO should we take into account the FEC encoding symbol length ?
packet_transmission_tick = Some(target_acquisition_duration.div_f64(nb_packets as f64));
packet_transmission_tick = Some(target_acquisition_latency.div_f64(nb_packets as f64));
}

if oti.fec_encoding_id == oti::FECEncodingID::RaptorQ
Expand Down
20 changes: 10 additions & 10 deletions src/sender/objectdesc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub struct ObjectDesc {
///
/// **Note:** The transfer may take longer if the sender's scheduling is slower than expected or
/// if other delays occur during the transfer process.
pub target_acquisition_duration: Option<std::time::Duration>,
pub target_acquisition_latency: Option<std::time::Duration>,
/// If defined, object is transmitted in a carousel every `carousel_delay_ns`
pub carousel_delay: Option<std::time::Duration>,
/// Define object cache control
Expand Down Expand Up @@ -122,7 +122,7 @@ impl ObjectDesc {
cache_in_ram: bool,
max_transfer_count: u32,
carousel_delay: Option<std::time::Duration>,
target_acquisition_duration: Option<std::time::Duration>,
target_acquisition_latency: Option<std::time::Duration>,
cache_control: Option<CacheControl>,
groups: Option<Vec<String>>,
cenc: lct::Cenc,
Expand Down Expand Up @@ -151,7 +151,7 @@ impl ObjectDesc {
content_location,
max_transfer_count,
carousel_delay,
target_acquisition_duration,
target_acquisition_latency,
cache_control,
groups,
cenc,
Expand All @@ -166,7 +166,7 @@ impl ObjectDesc {
content_location,
max_transfer_count,
carousel_delay,
target_acquisition_duration,
target_acquisition_latency,
cache_control,
groups,
cenc,
Expand All @@ -184,7 +184,7 @@ impl ObjectDesc {
content_location: &url::Url,
max_transfer_count: u32,
carousel_delay: Option<std::time::Duration>,
target_acquisition_duration: Option<std::time::Duration>,
target_acquisition_latency: Option<std::time::Duration>,
cache_control: Option<CacheControl>,
groups: Option<Vec<String>>,
cenc: lct::Cenc,
Expand All @@ -199,7 +199,7 @@ impl ObjectDesc {
content_location.clone(),
max_transfer_count,
carousel_delay,
target_acquisition_duration,
target_acquisition_latency,
cache_control,
groups,
cenc,
Expand All @@ -216,7 +216,7 @@ impl ObjectDesc {
content_location: url::Url,
max_transfer_count: u32,
carousel_delay: Option<std::time::Duration>,
target_acquisition_duration: Option<std::time::Duration>,
target_acquisition_latency: Option<std::time::Duration>,
cache_control: Option<CacheControl>,
groups: Option<Vec<String>>,
cenc: lct::Cenc,
Expand Down Expand Up @@ -259,7 +259,7 @@ impl ObjectDesc {
oti,
max_transfer_count,
carousel_delay,
target_acquisition_duration,
target_acquisition_latency,
cache_control,
groups,
toi: None,
Expand All @@ -273,7 +273,7 @@ impl ObjectDesc {
content_location: url::Url,
max_transfer_count: u32,
carousel_delay: Option<std::time::Duration>,
target_acquisition_duration: Option<std::time::Duration>,
target_acquisition_latency: Option<std::time::Duration>,
cache_control: Option<CacheControl>,
groups: Option<Vec<String>>,
cenc: lct::Cenc,
Expand Down Expand Up @@ -311,7 +311,7 @@ impl ObjectDesc {
oti,
max_transfer_count,
carousel_delay,
target_acquisition_duration,
target_acquisition_latency,
cache_control,
groups,
toi: None,
Expand Down

0 comments on commit 793d54c

Please sign in to comment.