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:
Christian Göttsche 2021-08-10 19:58:13 +02:00 committed by BenBE
parent 796bc36fe0
commit 6974ce8e79
1 changed files with 3 additions and 0 deletions

View File

@ -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'