diff options
Diffstat (limited to 'src/ot_stats.c')
| -rw-r--r-- | src/ot_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ot_stats.c b/src/ot_stats.c index d395275..9901081 100644 --- a/src/ot_stats.c +++ b/src/ot_stats.c | |||
| @@ -791,7 +791,7 @@ void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FL | |||
| 791 | int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); | 791 | int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); |
| 792 | off += ip_format(_debug + off, *ip); | 792 | off += ip_format(_debug + off, *ip); |
| 793 | off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); | 793 | off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); |
| 794 | (void)write(2, _debug, off); | 794 | (void)!write(2, _debug, off); |
| 795 | COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); | 795 | COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); |
| 796 | } break; | 796 | } break; |
| 797 | case EVENT_FULLSCRAPE_REQUEST_GZIP: { | 797 | case EVENT_FULLSCRAPE_REQUEST_GZIP: { |
| @@ -800,7 +800,7 @@ void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FL | |||
| 800 | int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); | 800 | int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); |
| 801 | off += ip_format(_debug + off, *ip); | 801 | off += ip_format(_debug + off, *ip); |
| 802 | off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); | 802 | off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); |
| 803 | (void)write(2, _debug, off); | 803 | (void)!write(2, _debug, off); |
| 804 | COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); | 804 | COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); |
| 805 | } break; | 805 | } break; |
| 806 | case EVENT_FAILED: | 806 | case EVENT_FAILED: |
