Returns load averages from uptime(1) (FreeBSD) or /proc/loadavg
(Linux). On error, the arguments will be set to 0.0.
The function returns the following error codes:
E_EMPTY if result is empty.E_FORMAT if file or output format is unexpected.E_IO if opening file failed.E_NOT_FOUND if file or variable does not exist.E_PLATFORM if system type is unsupported.E_READ if reading from file or pipe failed.E_SYSTEM if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(out), | optional | :: | avg1 |
Average, 1 min. |
|
| real, | intent(out), | optional | :: | avg5 |
Average, 5 min. |
|
| real, | intent(out), | optional | :: | avg15 |
Average, 15 min. |