Rename 'readdrivestat' function on v3

Signed-off-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
pull/1137/head
Pablo Baeyens 4 years ago
parent cc70488af8
commit 78e8d0adf0
No known key found for this signature in database
GPG Key ID: A20303044455C7E8

@ -19,7 +19,7 @@ import (
func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) { func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
var buf [C.NDRIVE]C.DriveStats var buf [C.NDRIVE]C.DriveStats
n, err := C.readdrivestat(&buf[0], C.int(len(buf))) n, err := C.v3readdrivestat(&buf[0], C.int(len(buf)))
if err != nil { if err != nil {
return nil, err return nil, err
} }

@ -16,7 +16,7 @@ static int getdrivestat(io_registry_entry_t d, DriveStats *stat);
static int fillstat(io_registry_entry_t d, DriveStats *stat); static int fillstat(io_registry_entry_t d, DriveStats *stat);
int int
readdrivestat(DriveStats a[], int n) v3readdrivestat(DriveStats a[], int n)
{ {
mach_port_t port; mach_port_t port;
CFMutableDictionaryRef match; CFMutableDictionaryRef match;

@ -29,5 +29,4 @@ struct CPUStats {
natural_t idle; natural_t idle;
}; };
extern int readdrivestat(DriveStats a[], int n); extern int v3readdrivestat(DriveStats a[], int n);
extern int readcpustat(CPUStats *cpu);

Loading…
Cancel
Save