summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_getloadavg.3
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-03-04 15:29:58 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-03-04 15:29:58 +0000
commitecc71a2af2e2ea3a4b9b2bd464faf43faf9dd1ce (patch)
tree1374e1c20ea944d5552742ab21d7b5200506a8ad /lib/libkvm/kvm_getloadavg.3
parent0b4e482da737df64291fac8d4d49b211a41eb3b5 (diff)
Various cleanups and mdoc'ing.
Diffstat (limited to 'lib/libkvm/kvm_getloadavg.3')
-rw-r--r--lib/libkvm/kvm_getloadavg.37
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libkvm/kvm_getloadavg.3 b/lib/libkvm/kvm_getloadavg.3
index 2b254b7efdb..fc59c01688c 100644
--- a/lib/libkvm/kvm_getloadavg.3
+++ b/lib/libkvm/kvm_getloadavg.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kvm_getloadavg.3,v 1.4 1999/05/16 19:55:53 alex Exp $
+.\" $OpenBSD: kvm_getloadavg.3,v 1.5 2000/03/04 15:29:56 aaron Exp $
.\" $NetBSD: kvm_getloadavg.3,v 1.2 1996/03/18 22:33:26 thorpej Exp $
.\"
.\" Copyright (c) 1992, 1993
@@ -43,7 +43,6 @@
.Sh SYNOPSIS
.Fd #include <sys/resource.h>
.Fd #include <kvm.h>
-.br
.Ft int
.Fn kvm_getloadavg "kvm_t *kd" "double loadavg[]" "int nelem"
.Sh DESCRIPTION
@@ -59,8 +58,8 @@ samples are retrieved and assigned to successive elements of
.Fa loadavg Ns Bq .
The system imposes a maximum of 3 samples, representing averages
over the last 1, 5, and 15 minutes, respectively.
-.Sh DIAGNOSTICS
-If the load average was unobtainable, \-1 is returned; otherwise,
+.Sh RETURN VALUES
+If the load average was unobtainable, \-1 is returned. Otherwise,
the number of samples actually retrieved is returned.
.Sh SEE ALSO
.Xr uptime 1 ,