tree-wide: say "ratelimit" not "rate_limit"
"ratelimit" is a real word, so we don't need to use the other form anywhere. We had both forms in various places, let's standarize on the shorter and more correct one.
This commit is contained in:
+6
-6
@@ -4000,8 +4000,8 @@ void exec_context_done(ExecContext *c) {
|
||||
|
||||
exec_context_free_log_extra_fields(c);
|
||||
|
||||
c->log_rate_limit_interval_usec = 0;
|
||||
c->log_rate_limit_burst = 0;
|
||||
c->log_ratelimit_interval_usec = 0;
|
||||
c->log_ratelimit_burst = 0;
|
||||
|
||||
c->stdin_data = mfree(c->stdin_data);
|
||||
c->stdin_data_size = 0;
|
||||
@@ -4515,16 +4515,16 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
|
||||
fprintf(f, "%sLogLevelMax: %s\n", prefix, strna(t));
|
||||
}
|
||||
|
||||
if (c->log_rate_limit_interval_usec > 0) {
|
||||
if (c->log_ratelimit_interval_usec > 0) {
|
||||
char buf_timespan[FORMAT_TIMESPAN_MAX];
|
||||
|
||||
fprintf(f,
|
||||
"%sLogRateLimitIntervalSec: %s\n",
|
||||
prefix, format_timespan(buf_timespan, sizeof(buf_timespan), c->log_rate_limit_interval_usec, USEC_PER_SEC));
|
||||
prefix, format_timespan(buf_timespan, sizeof(buf_timespan), c->log_ratelimit_interval_usec, USEC_PER_SEC));
|
||||
}
|
||||
|
||||
if (c->log_rate_limit_burst > 0)
|
||||
fprintf(f, "%sLogRateLimitBurst: %u\n", prefix, c->log_rate_limit_burst);
|
||||
if (c->log_ratelimit_burst > 0)
|
||||
fprintf(f, "%sLogRateLimitBurst: %u\n", prefix, c->log_ratelimit_burst);
|
||||
|
||||
if (c->n_log_extra_fields > 0) {
|
||||
size_t j;
|
||||
|
||||
Reference in New Issue
Block a user