Skip to content

Commit 78e8d0a

Browse files
committed
Rename 'readdrivestat' function on v3
Signed-off-by: Pablo Baeyens <[email protected]>
1 parent cc70488 commit 78e8d0a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

v3/disk/disk_darwin_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
2121
var buf [C.NDRIVE]C.DriveStats
22-
n, err := C.readdrivestat(&buf[0], C.int(len(buf)))
22+
n, err := C.v3readdrivestat(&buf[0], C.int(len(buf)))
2323
if err != nil {
2424
return nil, err
2525
}

v3/disk/iostat_darwin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static int getdrivestat(io_registry_entry_t d, DriveStats *stat);
1616
static int fillstat(io_registry_entry_t d, DriveStats *stat);
1717

1818
int
19-
readdrivestat(DriveStats a[], int n)
19+
v3readdrivestat(DriveStats a[], int n)
2020
{
2121
mach_port_t port;
2222
CFMutableDictionaryRef match;

v3/disk/iostat_darwin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ struct CPUStats {
2929
natural_t idle;
3030
};
3131

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

0 commit comments

Comments
 (0)