1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

tests/ping: Fix date(1) invocations

Fixes:	069681afd5 ("ping: use CLOCK_REALTIME for ICMP Originate Timestamp")
This commit is contained in:
Mark Johnston
2026-05-03 19:05:55 +00:00
parent 47ae0135d4
commit 667dd9eafa
+2 -2
View File
@@ -272,8 +272,8 @@ timestamp_origin_body()
atf_check test -n "$tsr"
# Convert tso and tsr from HH:MM:SS to seconds
tso_s=`date -jf %H:%M:%S $tso`
tsr_s=`date -jf %H:%M:%S $tsr`
tso_s=`date -jf %H:%M:%S $tso +%s`
tsr_s=`date -jf %H:%M:%S $tsr +%s`
diff=$((tso_s - tsr_s))
# Tolerate negative time difference between the sender and receiver