「🏗️」 wip: wut
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "help.h"
|
||||
#include <opt_parse.h>
|
||||
#include <ping.h>
|
||||
#include <utils.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
@ -18,7 +19,7 @@ void sigint(int sig) {
|
||||
printf("--- %s ping statistics ---", address);
|
||||
printf("%d packets transmitted, %d packets received, %f%% packet loss",
|
||||
tx_count, rx_count, (tx_count - rx_count / 2.0) * 100);
|
||||
printf("round-trip min/avg/max/stddev = %d/%d/%d/%d");
|
||||
printf("round-trip min/avg/max/stddev = %f/%f/%f/%f", get_min_rtt(), get_avg_rtt(), get_max_rtt(), get_stddev_rtt());
|
||||
}
|
||||
|
||||
options_t init_opt(args_t *args) {
|
||||
|
Reference in New Issue
Block a user