From 884539f70154b0fefdf6905be893c0ceabca755f Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Sat, 18 Aug 2001 05:46:59 +0000 Subject: 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" --- lib/libdevstat/devstat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libdevstat/devstat.h') diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h index ec638c15fed6..49d8f2dddca0 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; -- cgit v1.3