MCPcopy Create free account
hub / github.com/3rdparty/libprocess / _load_5min

Method _load_5min

include/process/system.hpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112 Future<double> _load_5min()
113 {
114 Try<os::Load> load = os::loadavg();
115 if (load.isSome()) {
116 return load->five;
117 }
118 return Failure("Failed to get loadavg: " + load.error());
119 }
120
121
122 Future<double> _load_15min()

Callers

nothing calls this directly

Calls 1

FailureClass · 0.85

Tested by

no test coverage detected