diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-12 18:30:35 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis+github@zem.fi> | 2018-12-12 19:10:51 +0000 |
commit | 2f1cce70ee79d0f23a1b2f36cd530a7a9fd8c457 (patch) | |
tree | 392eefcbfae46b96584fa2825bcdbda5e4f56728 /stat.c | |
parent | 35d35c197f2c115feb3b1fcc225b7ac56781b2b1 (diff) | |
download | nano-exporter-2f1cce70ee79d0f23a1b2f36cd530a7a9fd8c457.tar.gz nano-exporter-2f1cce70ee79d0f23a1b2f36cd530a7a9fd8c457.tar.xz nano-exporter-2f1cce70ee79d0f23a1b2f36cd530a7a9fd8c457.zip |
Add basic test for the stat collector.
Diffstat (limited to 'stat.c')
-rw-r--r-- | stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.c b/stat.c index e36579d..a5ac52a 100644 --- a/stat.c +++ b/stat.c @@ -56,7 +56,7 @@ static void stat_collect(scrape_req *req, void *ctx) { // scan /proc/stat for metrics - f = fopen("/proc/stat", "r"); + f = fopen(PATH("/proc/stat"), "r"); if (!f) return; |