diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-05-03 19:05:55 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-05-03 21:51:50 +0000 |
| commit | 667dd9eafa4d5352efdfcdc1a9e228c23fbc60f5 (patch) | |
| tree | d50623cc10243a35d58840639ba0dc89fe033d84 | |
| parent | 47ae0135d461854b72b905ac77bf3e1f5b2868bc (diff) | |
| -rw-r--r-- | sbin/ping/tests/ping_test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/tests/ping_test.sh b/sbin/ping/tests/ping_test.sh index 6e090cfd945a..af700615dc8d 100644 --- a/sbin/ping/tests/ping_test.sh +++ b/sbin/ping/tests/ping_test.sh @@ -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 |
