diff options
author | ken <ken@FreeBSD.org> | 2001-08-18 05:46:59 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2001-08-18 05:46:59 +0000 |
commit | ef96d4b7a9b4d75885e7773a2430560c72f9b2aa (patch) | |
tree | 048b1c2152f5670e9ca51f561c6bddb4e8181511 /lib/libdevstat/devstat.3 | |
parent | 95b64737b7f4cb499936bd0af68d59f0de68fbdb (diff) | |
download | FreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.zip FreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.tar.gz |
Implement compute_stats() in terms of devstat_compute_statistics(). This
gets rid of the duplicated code in compute_stats().
Add a new DSM_SKIP statistic type for devstat_compute_statistics() that
causes the subsequent variable argument to be skipped.
Thanks to Sergey Osokin for coding up my idea/code fragment.
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
Diffstat (limited to 'lib/libdevstat/devstat.3')
-rw-r--r-- | lib/libdevstat/devstat.3 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.3 b/lib/libdevstat/devstat.3 index 102d582..319b37e 100644 --- a/lib/libdevstat/devstat.3 +++ b/lib/libdevstat/devstat.3 @@ -762,6 +762,18 @@ and .Va current . As above, this is not the true number of milliseconds per transaction, but rather the average rate of write transaction completion. +.It DSM_SKIP +type: N/A +.Pp +If you do not need a result from +.Fn devstat_compute_statistics , +just put +.Va DSM_SKIP +as first (type) parameter and +.Va NULL +as second parameter. +This can be useful in scenarios where the statistics to be calculated +are determined at run time. .El .Pp .Fn compute_stats |