Returns load averages from /proc/loadavg.
The function returns the following error codes:
E_EMPTY if result is empty.E_FORMAT if file format is invalid.E_IO if opening file failed.E_NOT_FOUND if file or variable does not exist.E_PLATFORM if current system is not Linux.E_READ if reading from file system 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. |