Skip to content

Commit

Permalink
Fix format strings using time to not include extraneous ms suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 15, 2018
1 parent 1bde6e7 commit 9a7318d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/socket/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Meta {
}

pub(crate) fn neighbor_missing(&mut self, timestamp: Instant, neighbor: IpAddress) {
net_trace!("{}: neighbor {} missing, silencing until t+{}ms",
net_trace!("{}: neighbor {} missing, silencing until t+{}",
self.handle, neighbor, Self::DISCOVERY_SILENT_TIME);
self.neighbor_state = NeighborState::Waiting {
neighbor, silent_until: timestamp + Self::DISCOVERY_SILENT_TIME
Expand Down
2 changes: 1 addition & 1 deletion src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ impl<'a> TcpSocket<'a> {
} else if !self.seq_to_transmit() {
if let Some(retransmit_delta) = self.timer.should_retransmit(timestamp) {
// If a retransmit timer expired, we should resend data starting at the last ACK.
net_debug!("{}:{}:{}: retransmitting at t+{}ms",
net_debug!("{}:{}:{}: retransmitting at t+{}",
self.meta.handle, self.local_endpoint, self.remote_endpoint,
retransmit_delta);
self.remote_last_seq = self.local_seq_no;
Expand Down

0 comments on commit 9a7318d

Please sign in to comment.