address comments
This commit is contained in:
@@ -12,7 +12,6 @@ use tracing::{error, info};
|
||||
use crate::NetstackArgs;
|
||||
use crate::common::netstack::{NetstackRequest, NetstackRequestGo, NetstackResult};
|
||||
use crate::common::types::WgProbeResults;
|
||||
use crate::config::NetstackArgs;
|
||||
|
||||
/// Safe division that returns 0.0 when divisor is 0 (instead of NaN/Inf)
|
||||
fn safe_ratio(received: u16, sent: u16) -> f32 {
|
||||
|
||||
@@ -52,7 +52,7 @@ pub struct NetstackArgs {
|
||||
pub port_check_ports: Vec<u16>,
|
||||
|
||||
/// Timeout in seconds for each individual port check attempt
|
||||
#[arg(long, default_value_t = 5)]
|
||||
#[arg(long, default_value_t = NetstackArgs::default().port_check_timeout_sec)]
|
||||
pub port_check_timeout_sec: u64,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user