diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:13:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:13:11 +0000 |
commit | 2a339b7627bad567c54a7e274462f8abf66efdf8 (patch) | |
tree | a17ef56ea38269607341c02b7bf7cc1a95f8f8b8 /src/or/router.c | |
parent | 6d53717215bb6c47b277a46060fb52e92d297a45 (diff) | |
download | tor-2a339b7627bad567c54a7e274462f8abf66efdf8.tar.gz tor-2a339b7627bad567c54a7e274462f8abf66efdf8.zip |
Split uptime into separate field
svn:r2067
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 35562eff73..f9b413db06 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -527,8 +527,8 @@ int router_rebuild_descriptor(void) { */ void get_platform_str(char *platform, int len) { - snprintf(platform, len-1, "Tor %s (up %ld sec) on %s", - VERSION, stats_n_seconds_uptime, get_uname()); + snprintf(platform, len-1, "Tor %s on %s", + VERSION, get_uname()); platform[len-1] = '\0'; return; } @@ -591,6 +591,7 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, "router %s %s %d %d %d\n" "platform %s\n" "published %s\n" + "opt uptime %ld\n" "bandwidth %d %d %d\n" "onion-key\n%s" "signing-key\n%s", @@ -604,6 +605,7 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, router->is_trusted_dir ? router->dir_port : 0, router->platform, published, + stats_n_seconds_uptime, (int) router->bandwidthrate, (int) router->bandwidthburst, (int) router->advertisedbandwidth, |