dm_freebsd_uptime_load_average Function

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

Returns load averages from uptime(1).

The function returns the following error codes:

  • E_FORMAT if output format is unexpected.
  • E_PLATFORM if current system is not FreeBSD.
  • E_READ if pipe returned no bytes.
  • E_SYSTEM if system call failed.

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_freebsd_uptime_load_average~~CallsGraph proc~dm_freebsd_uptime_load_average dm_freebsd_uptime_load_average proc~dm_is_error dm_is_error proc~dm_freebsd_uptime_load_average->proc~dm_is_error proc~dm_pipe_execute dm_pipe_execute proc~dm_freebsd_uptime_load_average->proc~dm_pipe_execute proc~dm_pipe_execute->proc~dm_is_error proc~dm_pipe_close dm_pipe_close proc~dm_pipe_execute->proc~dm_pipe_close proc~dm_pipe_open dm_pipe_open proc~dm_pipe_execute->proc~dm_pipe_open proc~dm_pipe_read dm_pipe_read proc~dm_pipe_execute->proc~dm_pipe_read c_pclose c_pclose proc~dm_pipe_close->c_pclose proc~dm_pipe_is_connected dm_pipe_is_connected proc~dm_pipe_close->proc~dm_pipe_is_connected c_popen c_popen proc~dm_pipe_open->c_popen proc~dm_f_c_string dm_f_c_string proc~dm_pipe_open->proc~dm_f_c_string proc~dm_pipe_open->proc~dm_pipe_is_connected c_fread c_fread proc~dm_pipe_read->c_fread proc~dm_pipe_read->proc~dm_pipe_is_connected

Called by

proc~~dm_freebsd_uptime_load_average~~CalledByGraph proc~dm_freebsd_uptime_load_average dm_freebsd_uptime_load_average proc~dm_system_load_average dm_system_load_average proc~dm_system_load_average->proc~dm_freebsd_uptime_load_average