diff options
author | Nathan Scott <nathans@redhat.com> | 2021-03-01 12:10:18 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-03-01 12:10:18 +1100 |
commit | 00339087b0ec7ab951eb65b03a2d1d66d97517f0 (patch) | |
tree | 5a2319e2d95c208ab2d99b66ec83eb035d567d00 /freebsd | |
parent | 379421d3b2a5a1cf718b555663ec873ef7ea90d8 (diff) |
Fix integer sizing issues in the DiskIO Meter
On Linux kernels the size of the values exported for block
device bytes has used a 64 bit integer for quite some time
(2.6+ IIRC). Make the procfs value extraction use correct
types and change internal types used to rate convert these
counters (within the DiskIO Meter) 64 bit integers, where
appropriate.
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 9f8c051f..19a6f94f 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -289,7 +289,7 @@ bool Platform_getDiskIO(DiskIOData* data) { int count = current.dinfo->numdevs; - unsigned long int bytesReadSum = 0, bytesWriteSum = 0, timeSpendSum = 0; + unsigned long long int bytesReadSum = 0, bytesWriteSum = 0, timeSpendSum = 0; // get data for (int i = 0; i < count; i++) { |