diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-15 01:24:38 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-15 01:24:38 +0200 |
commit | 577dbe94496479256311a8c84909c36123b7a406 (patch) | |
tree | 0da15d70575595e4c6e852514c2b1df129cbe05d /src/proc_net_dev.c | |
parent | 066e6219897943550489d89a745ffe34e388677a (diff) |
allow netdata to be easily relocatable
Diffstat (limited to 'src/proc_net_dev.c')
-rw-r--r-- | src/proc_net_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc_net_dev.c b/src/proc_net_dev.c index a0e19f3c3d..bb1e4c0fac 100644 --- a/src/proc_net_dev.c +++ b/src/proc_net_dev.c @@ -134,7 +134,7 @@ int do_proc_net_dev(int update_every, usec_t dt) { if(unlikely(!ff)) { char filename[FILENAME_MAX + 1]; - snprintfz(filename, FILENAME_MAX, "%s%s", global_host_prefix, "/proc/net/dev"); + snprintfz(filename, FILENAME_MAX, "%s%s", netdata_configured_host_prefix, "/proc/net/dev"); ff = procfile_open(config_get("plugin:proc:/proc/net/dev", "filename to monitor", filename), " \t,:|", PROCFILE_FLAG_DEFAULT); if(unlikely(!ff)) return 1; } |