diff options
Diffstat (limited to 'operators')
| -rw-r--r-- | operators/callback_ping.zsh | 5 | ||||
| -rw-r--r-- | operators/command_ping.zsh | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/operators/callback_ping.zsh b/operators/callback_ping.zsh index b728bc4..2a3c541 100644 --- a/operators/callback_ping.zsh +++ b/operators/callback_ping.zsh @@ -3,7 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 output_text="Measuring latency..." -latency_init=$(strftime %s%N) +latency_sysf=$(strftime %s%N) +latency_net=$(strftime %s%N) if ! output_data="$( curl --connect-timeout ${connrefused_timeout} \ @@ -29,7 +30,7 @@ then return fi -latency_fin=$(strftime %s%N) +latency_netf=$(strftime %s%N) if ! jq -e '.' <<< "${output_data}" > /dev/null then diff --git a/operators/command_ping.zsh b/operators/command_ping.zsh index 546e588..dfb6016 100644 --- a/operators/command_ping.zsh +++ b/operators/command_ping.zsh @@ -3,7 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 output_text="Measuring latency..." -latency_init=$(strftime %s%N) +latency_sysf=$(strftime %s%N) +latency_net=$(strftime %s%N) if ! output_data="$( curl --connect-timeout ${connrefused_timeout} \ @@ -30,7 +31,7 @@ then return fi -latency_fin=$(strftime %s%N) +latency_netf=$(strftime %s%N) if ! jq -e '.' <<< "${output_data}" > /dev/null then |
