Skip to content

Commit ddc3679

Browse files
committed
darwin: Use uint64_t for disk IO accumulated values
Change the data type from unsigned long long to uint64_t. Suggested by Benny Baumann <[email protected]>
1 parent 64efa16 commit ddc3679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

darwin/Platform.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ bool Platform_getDiskIO(DiskIOData* data) {
404404
if (IOServiceGetMatchingServices(iokit_port, IOServiceMatching("IOBlockStorageDriver"), &drive_list))
405405
return false;
406406

407-
unsigned long long int read_sum = 0, write_sum = 0, timeSpend_sum = 0;
407+
uint64_t read_sum = 0, write_sum = 0, timeSpend_sum = 0;
408408
uint64_t numDisks = 0;
409409

410410
io_registry_entry_t drive;
@@ -437,7 +437,7 @@ bool Platform_getDiskIO(DiskIOData* data) {
437437
numDisks++;
438438

439439
CFNumberRef number;
440-
unsigned long long int value;
440+
uint64_t value;
441441

442442
/* Get bytes read */
443443
number = (CFNumberRef) CFDictionaryGetValue(statistics, CFSTR(kIOBlockStorageDriverStatisticsBytesReadKey));

0 commit comments

Comments
 (0)