Skip to content

Commit 5d1f4c3

Browse files
committed
See more detailed CPu measurements
1 parent d3d5c03 commit 5d1f4c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/crawlee/_utils/system.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ def get_cpu_info() -> CpuInfo:
9393
It utilizes the `psutil` library. Function `psutil.cpu_percent()` returns a float representing the current
9494
system-wide CPU utilization as a percentage.
9595
"""
96-
logger.debug('Calling get_cpu_info()...')
97-
cpu_percent = psutil.cpu_percent(interval=0.1)
96+
97+
cpu_percent = psutil.cpu_percent()
98+
logger.info(f'Calling get_cpu_info()...: {cpu_percent}')
9899
return CpuInfo(used_ratio=cpu_percent / 100)
99100

100101

0 commit comments

Comments
 (0)