diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-10 19:58:13 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-08-10 22:01:42 +0200 |
commit | 6974ce8e7982d061f26dbbe7c5ca48d7aa6f4dbc (patch) | |
tree | 6d60fc61ad63b6038bd95103f0c0229ba67ac3d8 /linux | |
parent | 796bc36fe0230c7739bbe95c008241ca0373f890 (diff) |
Linux: do not include zram devices in DiskIO
The meter is intended to show *real* IO, which is significantly slower
than zram.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/Platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index f45f4f53..f31137fe 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -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' |