diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-12-17 22:06:11 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-12-17 22:06:11 +0300 |
commit | e8507d40aa9d55eb3af6196584bf3118d4f08050 (patch) | |
tree | ebb0bbb4f5bab99b6496d7beb64888a403465973 /accel-pptpd/triton | |
parent | 33845548dbae8fb6b798afb135b1aab60ab19093 (diff) | |
download | accel-ppp-e8507d40aa9d55eb3af6196584bf3118d4f08050.tar.gz accel-ppp-e8507d40aa9d55eb3af6196584bf3118d4f08050.zip |
cli: show uptime in statistics
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r-- | accel-pptpd/triton/triton.c | 2 | ||||
-rw-r--r-- | accel-pptpd/triton/triton.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/accel-pptpd/triton/triton.c b/accel-pptpd/triton/triton.c index 26c257c7..15e38882 100644 --- a/accel-pptpd/triton/triton.c +++ b/accel-pptpd/triton/triton.c @@ -484,6 +484,8 @@ void __export triton_run() list_add_tail(&t->entry, &threads); } + time(&triton_stat.start_time); + md_run(); timer_run(); } diff --git a/accel-pptpd/triton/triton.h b/accel-pptpd/triton/triton.h index 0fd450cc..d61253b9 100644 --- a/accel-pptpd/triton/triton.h +++ b/accel-pptpd/triton/triton.h @@ -63,6 +63,7 @@ struct triton_stat_t uint32_t md_handler_pending; uint32_t timer_count; uint32_t timer_pending; + time_t start_time; }; extern struct triton_stat_t triton_stat; |