summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 8192d27..2e745a4 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -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++;