Skip to content

Commit

Permalink
Update trident.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoziv authored and sharang committed Sep 21, 2023
1 parent ab62131 commit cb8da48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/src/trident.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ impl Trident {
}
};

let hostname = match &config.override_os_hostname {
let hostname = match config.override_os_hostname.as_ref() {
Some(name) => name.to_owned(),
None => get_hostname().unwrap_or("unknown-host".to_owned()),
None => get_hostname().unwrap_or_default(),
};

let ntp_diff = Arc::new(AtomicI64::new(0));
Expand Down

0 comments on commit cb8da48

Please sign in to comment.