Update host list format to be
<ip_address>,<name> to make end user display and interpretation easier
This commit is contained in:
+2
-3
@@ -37,7 +37,7 @@ impl Manager {
|
||||
#[cfg(any(target_os="windows"))] {
|
||||
result = Command::new("c:/windows/system32/ping.exe").arg(request.target.to_string())
|
||||
.arg("-n 1")
|
||||
.arg("-w 10")
|
||||
.arg(format!("-w {}", crate::SECONDS_BETWEEN_PING))
|
||||
.arg("-4")
|
||||
.output().unwrap().status.code().unwrap_or(255);
|
||||
success = result == WIN_PING_SUCCESS as i32;;
|
||||
@@ -46,7 +46,7 @@ impl Manager {
|
||||
result = Command::new("/usr/bin/ping").arg(request.target.to_string())
|
||||
.arg("-c 1")
|
||||
.arg("-4")
|
||||
.arg("-w 10")
|
||||
.arg(format!("-w {}", SECONDS_BETWEEN_PING))
|
||||
.arg("-W 1")
|
||||
.output().unwrap().status.code().unwrap_or(255);
|
||||
success = result == LIN_PING_SUCCESS as i32;
|
||||
@@ -64,5 +64,4 @@ impl Manager {
|
||||
// println!("Attempt for for {}", local_request.target);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user