Skip to content

Commit

Permalink
Rename 'readdrivestat' function on v3
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
  • Loading branch information
mx-psi committed Sep 29, 2021
1 parent cc70488 commit 78e8d0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion v3/disk/disk_darwin_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
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 {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion v3/disk/iostat_darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static int getdrivestat(io_registry_entry_t d, DriveStats *stat);
static int fillstat(io_registry_entry_t d, DriveStats *stat);

int
readdrivestat(DriveStats a[], int n)
v3readdrivestat(DriveStats a[], int n)
{
mach_port_t port;
CFMutableDictionaryRef match;
Expand Down
3 changes: 1 addition & 2 deletions v3/disk/iostat_darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ struct CPUStats {
natural_t idle;
};

extern int readdrivestat(DriveStats a[], int n);
extern int readcpustat(CPUStats *cpu);
extern int v3readdrivestat(DriveStats a[], int n);

0 comments on commit 78e8d0a

Please sign in to comment.