about summary refs log tree commit diff
path: root/stat.c
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-12-12 18:30:35 +0000
committerHeikki Kallasjoki <fis+github@zem.fi>2018-12-12 19:10:51 +0000
commit2f1cce70ee79d0f23a1b2f36cd530a7a9fd8c457 (patch)
tree392eefcbfae46b96584fa2825bcdbda5e4f56728 /stat.c
parent35d35c197f2c115feb3b1fcc225b7ac56781b2b1 (diff)
downloadnano-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.c2
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;