projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/graph_list.[ch]: Implement "gl_foreach_host".
[collection4.git]
/
src
/
graph_config.c
diff --git
a/src/graph_config.c
b/src/graph_config.c
index
94dd440
..
6b9a97a
100644
(file)
--- a/
src/graph_config.c
+++ b/
src/graph_config.c
@@
-7,11
+7,14
@@
#include <errno.h>
#include "graph_config.h"
#include <errno.h>
#include "graph_config.h"
+#include "graph.h"
#include "graph_list.h"
#include "oconfig.h"
#include "common.h"
#include "graph_list.h"
#include "oconfig.h"
#include "common.h"
-#define CONFIG_FILE "/usr/lib/cgi-bin/octo/collection.conf"
+#ifndef CONFIGFILE
+# define CONFIGFILE "/etc/collection.conf"
+#endif
time_t last_read_mtime = 0;
time_t last_read_mtime = 0;
@@
-39,7
+42,7
@@
static int internal_read_config (void) /* {{{ */
{
oconfig_item_t *ci;
{
oconfig_item_t *ci;
- ci = oconfig_parse_file (CONFIG
_
FILE);
+ ci = oconfig_parse_file (CONFIGFILE);
if (ci == NULL)
return (-1);
if (ci == NULL)
return (-1);
@@
-58,7
+61,7
@@
static time_t get_config_mtime (void) /* {{{ */
int status;
memset (&statbuf, 0, sizeof (statbuf));
int status;
memset (&statbuf, 0, sizeof (statbuf));
- status = stat (CONFIG
_
FILE, &statbuf);
+ status = stat (CONFIGFILE, &statbuf);
if (status != 0)
return (0);
if (status != 0)
return (0);