diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-02-12 17:01:23 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-02-12 17:01:23 +0200 |
commit | 28c6a911174d2ce2672e44b55e3e09c05adfad3f (patch) | |
tree | 764012ce8e1d60959f61a1b3b3857190842c49f7 /bootstrap | |
parent | 46ac092358df2a779754788f5f32bcb8aae5e2a0 (diff) | |
download | ping903-28c6a911174d2ce2672e44b55e3e09c05adfad3f.tar.gz ping903-28c6a911174d2ce2672e44b55e3e09c05adfad3f.tar.bz2 |
Separate ping-interval and probe-interval
* configure.ac: Use AM_PROG_AR
* src/config.c: rename "interval" to "ping-interval".
New statement: "probe-interval".
(readconfig): Signal error if ping_count probes don't fit into
probe_interval.
* src/ping903.conf: Update.
* src/ping903.h (host_stat): Rename "tv" to "start_tv".
New member: "stop_tv".
* src/pinger.c (probe_interval): New global.
(sendq_enqueue_unlocked): Remove.
(sendq_enqueue): Set xmit_tv to the time when this host should be
probed again.
(sendq_dequeue): Sleep until the right ping time.
(p903_sender): Don't lock sendq_mutex. This is done by sendq_dequeue.
(host_stat): Save start_tv and stop_tv.
(get_host_stat): Format stop-timestamp and recv-timestamp.
* src/main.c: Use sysexits.
* src/ping903q.c (print_host_status): Use stop-timestamp and
recv-timestamp to calculate duration.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions