dm_linux_procfs_load_average Function

public function dm_linux_procfs_load_average(avg1, avg5, avg15) result(rc)

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_PLATFORM if current system is not Linux.
  • E_READ if reading from file system failed.
  • E_NOT_FOUND if file or variable does not exist.

Arguments

Type IntentOptional 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.

Return Value integer


Calls

proc~~dm_linux_procfs_load_average~~CallsGraph proc~dm_linux_procfs_load_average dm_linux_procfs_load_average proc~dm_is_error dm_is_error proc~dm_linux_procfs_load_average->proc~dm_is_error

Called by

proc~~dm_linux_procfs_load_average~~CalledByGraph proc~dm_linux_procfs_load_average dm_linux_procfs_load_average proc~dm_system_load_average dm_system_load_average proc~dm_system_load_average->proc~dm_linux_procfs_load_average