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

Method _load_1min

include/process/system.hpp:102–109  ·  view source on GitHub ↗

Gauge handlers.

Source from the content-addressed store, hash-verified

100
101 // Gauge handlers.
102 Future<double> _load_1min()
103 {
104 Try<os::Load> load = os::loadavg();
105 if (load.isSome()) {
106 return load->one;
107 }
108 return Failure("Failed to get loadavg: " + load.error());
109 }
110
111
112 Future<double> _load_5min()

Callers

nothing calls this directly

Calls 1

FailureClass · 0.85

Tested by

no test coverage detected