Skip to content

Commit

Permalink
[#573] Variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Jan 3, 2025
1 parent d9adc2e commit c93f712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iceoryx2/src/port/notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,14 @@ impl<Service: service::Service> Notifier<Service> {
.elapsed_time_since_last_notification
.swap(duration_since_creation.as_nanos() as u64, Ordering::Relaxed);

let time_since_last_notification = Duration::from_nanos(
let duration_since_last_notification = Duration::from_nanos(
duration_since_creation.as_nanos() as u64 - previous_duration_since_creation,
);

if deadline.value < time_since_last_notification {
if deadline.value < duration_since_last_notification {
fail!(from self, with NotifierNotifyError::MissedDeadline,
"{} but the deadline was hit. The service requires a notification after {:?} but {:?} passed without a notification.",
msg, deadline.value, time_since_last_notification);
msg, deadline.value, duration_since_last_notification);
}
}

Expand Down

0 comments on commit c93f712

Please sign in to comment.