summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_stats.c b/ot_stats.c
index c6af116..63d9eda 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -670,7 +670,7 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_
670 case EVENT_FULLSCRAPE_REQUEST: { 670 case EVENT_FULLSCRAPE_REQUEST: {
671 ot_ip6 *ip = (ot_ip6 *)event_data; /* ugly hack to transfer ip to stats */ 671 ot_ip6 *ip = (ot_ip6 *)event_data; /* ugly hack to transfer ip to stats */
672 char _debug[512]; 672 char _debug[512];
673 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time) / 60); 673 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(time_now_seconds() - ot_start_time) / 60);
674 off += ip_format(_debug + off, *ip); 674 off += ip_format(_debug + off, *ip);
675 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); 675 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n");
676 (void)write(2, _debug, off); 676 (void)write(2, _debug, off);
@@ -679,7 +679,7 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_
679 case EVENT_FULLSCRAPE_REQUEST_GZIP: { 679 case EVENT_FULLSCRAPE_REQUEST_GZIP: {
680 ot_ip6 *ip = (ot_ip6 *)event_data; /* ugly hack to transfer ip to stats */ 680 ot_ip6 *ip = (ot_ip6 *)event_data; /* ugly hack to transfer ip to stats */
681 char _debug[512]; 681 char _debug[512];
682 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time) / 60); 682 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(time_now_seconds() - ot_start_time) / 60);
683 off += ip_format(_debug + off, *ip); 683 off += ip_format(_debug + off, *ip);
684 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); 684 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n");
685 (void)write(2, _debug, off); 685 (void)write(2, _debug, off);