diff options
author | Jos Dehaes <jos.dehaes@gmail.com> | 2021-11-16 22:30:55 +0100 |
---|---|---|
committer | Jos Dehaes <jos.dehaes@gmail.com> | 2021-11-16 22:30:55 +0100 |
commit | f32358bd47802b7af2ef5fe7f03bb4d4b5c9d544 (patch) | |
tree | dc05c8a5a9bb17b767fb3d347cf8017ad9270d98 | |
parent | d12b4d9d2359c9216ad5977a60de85aea865a92b (diff) |
correct unit number
-rw-r--r-- | src/freebsd/btop_collect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freebsd/btop_collect.cpp b/src/freebsd/btop_collect.cpp index f8f2a6b..0ff8ed5 100644 --- a/src/freebsd/btop_collect.cpp +++ b/src/freebsd/btop_collect.cpp @@ -483,7 +483,7 @@ namespace Mem { for (int i = 0; i < cur.dinfo->numdevs; i++) { auto d = cur.dinfo->devices[i]; devstat_compute_statistics(&d, NULL, etime, DSM_TOTAL_BYTES_READ, &total_bytes_read, DSM_TOTAL_BYTES_WRITE, &total_bytes_write, DSM_NONE); - Logger::debug("dev " + string(d.device_name) + std::to_string(d.device_number) + " read=" + std::to_string(total_bytes_read) + " write=" + std::to_string(total_bytes_write)); + Logger::debug("dev " + string(d.device_name) + std::to_string(d.unit_number) + " read=" + std::to_string(total_bytes_read) + " write=" + std::to_string(total_bytes_write)); } Logger::debug(""); } |