Changed the parameter for the network ping test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -4,12 +4,12 @@ use std::{fs,process};
|
||||
use crate::text;
|
||||
|
||||
// ping a host
|
||||
pub fn ping_host(host: &str, count: &u16) {
|
||||
println!("Pinging host {}, {} times.", host, count);
|
||||
pub fn ping_host(address: &str, count: &u16) {
|
||||
println!("Pinging host {}, {} times.", address, count);
|
||||
|
||||
// run the ping command
|
||||
let output = process::Command::new("ping")
|
||||
.arg(host)
|
||||
.arg(address)
|
||||
.arg(format!("-c {}", count))
|
||||
.output()
|
||||
.expect("Failed to execute command");
|
||||
|
Reference in New Issue
Block a user