Changed the parameter for the network ping test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-08-17 18:03:48 -04:00
parent 6fdc52b320
commit 9cd88d923d
2 changed files with 7 additions and 7 deletions

View File

@ -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");