diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-27 19:19:58 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-27 19:19:58 +0100 |
| commit | e66be92eed36e53fd35d277959ada176933f619d (patch) | |
| tree | 50ecd9400b1e205a358192492c421a0f164fcd88 /ot_stats.c | |
| parent | 43510abba3cdf9f10a3e6da732ce9250b0048d3a (diff) | |
Some more g_now_seconds occurrences
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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); |
