Add prototype for compute_stats() so that libdevstat is WARNS=4 clean.
Spotted by: kris
This commit is contained in:
parent
85030e713b
commit
0b1b370c47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113710
@ -47,6 +47,14 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include "devstat.h"
|
#include "devstat.h"
|
||||||
|
|
||||||
|
int
|
||||||
|
compute_stats(struct devstat *current, struct devstat *previous,
|
||||||
|
long double etime, u_int64_t *total_bytes,
|
||||||
|
u_int64_t *total_transfers, u_int64_t *total_blocks,
|
||||||
|
long double *kb_per_transfer, long double *transfers_per_second,
|
||||||
|
long double *mb_per_second, long double *blocks_per_second,
|
||||||
|
long double *ms_per_transaction);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
DEVSTAT_ARG_NOTYPE,
|
DEVSTAT_ARG_NOTYPE,
|
||||||
DEVSTAT_ARG_UINT64,
|
DEVSTAT_ARG_UINT64,
|
||||||
|
Loading…
Reference in New Issue
Block a user