mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-10 22:44:48 +12:00
correct unit number
This commit is contained in:
parent
d12b4d9d23
commit
f32358bd47
|
@ -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("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue