style: indent fix
This commit is contained in:
parent
2d77cca584
commit
f4c12993b1
4 changed files with 12 additions and 11 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
#include "ping/ping.h"
|
#include "ping/ping.h"
|
||||||
|
|
||||||
int cli_parse_inet_addr(const char *s, struct destinations *out);
|
int cli_parse_inet_addr(const char *s, struct destinations *out);
|
||||||
int cli_parse_destinations(int argc, char **argv, int first_arg,
|
int cli_parse_destinations(int argc, char **argv, int first_arg,
|
||||||
struct ping_config *config);
|
struct ping_config *config);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "internal/ping/ping_state.h"
|
#include "internal/ping/ping_state.h"
|
||||||
|
|
||||||
|
|
||||||
void ping_scheduler_init(struct ping_state *state);
|
void ping_scheduler_init(struct ping_state *state);
|
||||||
void ping_scheduler_arm(const struct ping_config *config);
|
void ping_scheduler_arm(const struct ping_config *config);
|
||||||
void ping_scheduler_select_tv(const struct ping_config *config,
|
void ping_scheduler_select_tv(const struct ping_config *config,
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ struct ping_stats {
|
||||||
size_t count;
|
size_t count;
|
||||||
};
|
};
|
||||||
|
|
||||||
void ping_stats_init(struct ping_stats *s);
|
void ping_stats_init(struct ping_stats *s);
|
||||||
void ping_stats_update(struct ping_stats *s, int64_t rtt_ns);
|
void ping_stats_update(struct ping_stats *s, int64_t rtt_ns);
|
||||||
void ping_stats_get(const struct ping_stats *s,
|
void ping_stats_get(const struct ping_stats *s, double *min_ms, double *max_ms,
|
||||||
double *min_ms, double *max_ms, double *avg_ms, double *mdev_ms);
|
double *avg_ms, double *mdev_ms);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,14 @@ struct ping_tracker {
|
||||||
size_t nb_recv;
|
size_t nb_recv;
|
||||||
};
|
};
|
||||||
|
|
||||||
void ping_tracker_init(struct ping_tracker *t);
|
void ping_tracker_init(struct ping_tracker *t);
|
||||||
void ping_tracker_record_send(struct ping_tracker *t, uint16_t seq, const
|
void ping_tracker_record_send(struct ping_tracker *t, uint16_t seq, const
|
||||||
struct timespec *ts);
|
struct timespec *ts);
|
||||||
int64_t ping_tracker_record_recv(struct ping_tracker *t, uint16_t seq,
|
int64_t ping_tracker_record_recv(struct ping_tracker *t, uint16_t seq,
|
||||||
const struct timespec *ts);
|
const struct timespec *ts);
|
||||||
|
|
||||||
#define ping_tracker_sent(t) ((t)->nb_sent)
|
#define ping_tracker_sent(t) ((t)->nb_sent)
|
||||||
#define ping_tracker_recv(t) ((t)->nb_recv)
|
#define ping_tracker_recv(t) ((t)->nb_recv)
|
||||||
#define ping_tracker_lost(t) ((t)->nb_sent - (t)->nb_recv)
|
#define ping_tracker_lost(t) ((t)->nb_sent - (t)->nb_recv)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue