diff options
author | erdgeist <> | 2009-06-16 12:17:53 +0000 |
---|---|---|
committer | erdgeist <> | 2009-06-16 12:17:53 +0000 |
commit | 2a94892890074e1090eb60b2e1b3273df9c7d899 (patch) | |
tree | d9f4735b35b2294195f446c64b1968bc1309aa41 /ot_stats.c | |
parent | 6c19143bc1279889ded58df7ee4ab9f452d58bfa (diff) |
Display v4 addresses in v4 mode nicer
Diffstat (limited to 'ot_stats.c')
-rw-r--r-- | ot_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -603,7 +603,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event | |||
603 | ot_ip6 *ip = (ot_ip6*)event_data; /* ugly hack to transfer ip to stats */ | 603 | ot_ip6 *ip = (ot_ip6*)event_data; /* ugly hack to transfer ip to stats */ |
604 | char _debug[512]; | 604 | char _debug[512]; |
605 | int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); | 605 | int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); |
606 | off += fmt_ip6( _debug+off, *ip ); | 606 | off += fmt_ip6c( _debug+off, *ip ); |
607 | off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); | 607 | off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); |
608 | write( 2, _debug, off ); | 608 | write( 2, _debug, off ); |
609 | ot_full_scrape_request_count++; | 609 | ot_full_scrape_request_count++; |
@@ -614,7 +614,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event | |||
614 | ot_ip6 *ip = (ot_ip6*)event_data; /* ugly hack to transfer ip to stats */ | 614 | ot_ip6 *ip = (ot_ip6*)event_data; /* ugly hack to transfer ip to stats */ |
615 | char _debug[512]; | 615 | char _debug[512]; |
616 | int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); | 616 | int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); |
617 | off += fmt_ip6(_debug+off, *ip ); | 617 | off += fmt_ip6c(_debug+off, *ip ); |
618 | off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); | 618 | off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); |
619 | write( 2, _debug, off ); | 619 | write( 2, _debug, off ); |
620 | ot_full_scrape_request_count++; | 620 | ot_full_scrape_request_count++; |