mirror of https://github.com/xzeldon/htop.git
Linux: do not include zram devices in DiskIO
The meter is intended to show *real* IO, which is significantly slower than zram.
This commit is contained in:
parent
796bc36fe0
commit
6974ce8e79
|
@ -550,6 +550,9 @@ bool Platform_getDiskIO(DiskIOData* data) {
|
|||
if (String_startsWith(diskname, "dm-"))
|
||||
continue;
|
||||
|
||||
if (String_startsWith(diskname, "zram"))
|
||||
continue;
|
||||
|
||||
/* only count root disks, e.g. do not count IO from sda and sda1 twice */
|
||||
if ((diskname[0] == 's' || diskname[0] == 'h')
|
||||
&& diskname[1] == 'd'
|
||||
|
|
Loading…
Reference in New Issue