Skip to content

Commit 03f0a7f

Browse files
KingPinKingPin
authored andcommitted
refactor: Remove perf_counter based elapsed time calculation for ping duration.
1 parent 74260d6 commit 03f0a7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pingpanda_core/checks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,13 @@ async def _check_ip(self, ip: str) -> None:
149149
return
150150

151151
success = False
152-
start_time = time.perf_counter()
152+
success = False
153153

154154
for attempt in range(app.retry_count):
155155
try:
156156
# aioping returns delay in seconds
157157
delay = await aioping.ping(ip, timeout=2)
158158

159-
elapsed = time.perf_counter() - start_time
160159
duration_ms = delay * 1000
161160

162161
if app._should_log_result(True):

0 commit comments

Comments
 (0)