diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 21:49:29 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 21:50:10 +0000 |
commit | 1df8f91af10605e3245774ed4b86254e8d9a1ffe (patch) | |
tree | 483932952a00c047dc5b617746efa13ec537eed5 /diskstats.c | |
parent | cf2969241324d2464bf1121406404cd8c0f6e0bc (diff) | |
download | nano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.tar.gz nano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.tar.xz nano-exporter-1df8f91af10605e3245774ed4b86254e8d9a1ffe.zip |
Add support for matching with prefix in include/exclude lists.
Diffstat (limited to 'diskstats.c')
-rw-r--r-- | diskstats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diskstats.c b/diskstats.c index bc2b1a4..0b305fd 100644 --- a/diskstats.c +++ b/diskstats.c @@ -124,10 +124,10 @@ static void diskstats_collect(scrape_req *req, void *ctx_ptr) { // filter if (ctx->include) { - if (!slist_contains(ctx->include, dev)) + if (!slist_matches(ctx->include, dev)) continue; } else if (ctx->exclude) { - if (slist_contains(ctx->exclude, dev)) + if (slist_matches(ctx->exclude, dev)) continue; } |