diff options
author | Christian Hesse <mail@eworm.de> | 2022-11-07 11:57:21 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-12-06 14:56:48 +0100 |
commit | 21e2875570e6dc0499f571950532c0f7f33e524d (patch) | |
tree | f4512687b89b207dddbf2b7f6c4ca398b7ab3687 /DiskIOMeter.c | |
parent | cd7df1c871f0874e35e319ee11cab9e1ac0f6c6a (diff) |
DiskIOMeter: use define ONE_K
... instead of numerical value. It is defined in Process.h.
Diffstat (limited to 'DiskIOMeter.c')
-rw-r--r-- | DiskIOMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DiskIOMeter.c b/DiskIOMeter.c index 12c87de6..925a2c41 100644 --- a/DiskIOMeter.c +++ b/DiskIOMeter.c @@ -64,7 +64,7 @@ static void DiskIOMeter_updateValues(Meter* this) { if (data.totalBytesRead > cached_read_total) { diff = data.totalBytesRead - cached_read_total; - diff /= 1024; /* Meter_humanUnit() expects unit in kilo */ + diff /= ONE_K; /* convert to KiB/s */ cached_read_diff = (uint32_t)diff; } else { cached_read_diff = 0; @@ -73,7 +73,7 @@ static void DiskIOMeter_updateValues(Meter* this) { if (data.totalBytesWritten > cached_write_total) { diff = data.totalBytesWritten - cached_write_total; - diff /= 1024; /* Meter_humanUnit() expects unit in kilo */ + diff /= ONE_K; /* convert to KiB/s */ cached_write_diff = (uint32_t)diff; } else { cached_write_diff = 0; |