summaryrefslogtreecommitdiffstats
path: root/conf/conf.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 23:44:54 +0100
committerMartin Mares <mj@ucw.cz>2000-03-12 23:44:54 +0100
commit432709027680d7791b325b2c2116c658eba21c8d (patch)
tree77f9d0f9591dea5e8fc4261f24b15191df7f68a0 /conf/conf.c
parent7a88832e78cbc18db109c091d74f6d27284cff44 (diff)
downloadbird-432709027680d7791b325b2c2116c658eba21c8d.tar
bird-432709027680d7791b325b2c2116c658eba21c8d.zip
Made `show status' show uptime and time of last reconfiguration.
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 21413e5..a4e0363 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -18,6 +18,7 @@
#include "lib/resource.h"
#include "lib/string.h"
#include "lib/event.h"
+#include "lib/timer.h"
#include "conf/conf.h"
#include "filter/filter.h"
@@ -26,6 +27,7 @@ static jmp_buf conf_jmpbuf;
struct config *config, *new_config, *old_config, *future_config;
static event *config_event;
int shutting_down;
+bird_clock_t boot_time;
struct config *
config_alloc(byte *name)
@@ -37,6 +39,9 @@ config_alloc(byte *name)
c->pool = p;
cfg_mem = c->mem = l;
c->file_name = cfg_strdup(name);
+ c->load_time = now;
+ if (!boot_time)
+ boot_time = now;
return c;
}