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.h | |
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.h')
-rw-r--r-- | lib/libdevstat/devstat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h index ec638c1..49d8f2d 100644 --- a/lib/libdevstat/devstat.h +++ b/lib/libdevstat/devstat.h @@ -74,6 +74,7 @@ typedef enum { DSM_MS_PER_TRANSACTION, DSM_MS_PER_TRANSACTION_READ, DSM_MS_PER_TRANSACTION_WRITE, + DSM_SKIP, DSM_MAX } devstat_metric; |