Skip to content

Commit 50b7c89

Browse files
Apply suggestions from code review
Co-authored-by: Savannah Ostrowski <[email protected]>
1 parent ab1753e commit 50b7c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/profiling/sampling/_child_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def wait_for_profilers(self, timeout=_DEFAULT_WAIT_TIMEOUT):
157157
file=sys.stderr,
158158
)
159159

160-
deadline = time.time() + timeout
160+
deadline = time.monotonic() + timeout
161161
for proc in profilers:
162-
remaining = deadline - time.time()
162+
remaining = deadline - time.monotonic()
163163
if remaining <= 0:
164164
break
165165
try:

0 commit comments

Comments
 (0)