diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-12 18:04:20 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis+github@zem.fi> | 2018-12-12 19:10:51 +0000 |
commit | 9f2db173733774cd7a991ea7f2a37c9e2c491ae9 (patch) | |
tree | 516af3b62167976506e473158c97e5e67a45966d /meminfo.c | |
parent | 79b14a8f79b63f79a282551c913f82ca4d1ed22d (diff) | |
download | nano-exporter-9f2db173733774cd7a991ea7f2a37c9e2c491ae9.tar.gz nano-exporter-9f2db173733774cd7a991ea7f2a37c9e2c491ae9.tar.xz nano-exporter-9f2db173733774cd7a991ea7f2a37c9e2c491ae9.zip |
Add basic test for the meminfo collector.
Diffstat (limited to 'meminfo.c')
-rw-r--r-- | meminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meminfo.c b/meminfo.c index 407b946..7c4439e 100644 --- a/meminfo.c +++ b/meminfo.c @@ -52,7 +52,7 @@ static void meminfo_collect(scrape_req *req, void *ctx) { // convert /proc/meminfo to metrics format - f = fopen("/proc/meminfo", "r"); + f = fopen(PATH("/proc/meminfo"), "r"); if (!f) return; |