MCPcopy Create free account
hub / github.com/celery/celery / _load_average

Function _load_average

celery/utils/sysinfo.py:204–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202if hasattr(os, 'getloadavg'):
203
204 def _load_average() -> tuple[float, ...]:
205 return tuple(ceil(l * 1e2) / 1e2 for l in os.getloadavg())
206
207else: # pragma: no cover
208 # Windows doesn't have getloadavg

Callers 1

load_averageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected