Reset counter at CUTOFF_TIME and can be configure in config.env
This commit is contained in:
1 parent
e6dc27398f
commit
178797fbbe
11 files changed
+43
-2
No files matched your search
@@ -104,6 +104,8 @@ void AppConfig::load_from_env(const char* env_path) {
|
||||
if (!rw_s.empty()) rate_window_sec = std::stoi(rw_s);
|
||||
|
||||
daily_cutoff_time = get_env("DAILY_CUTOFF_TIME", daily_cutoff_time);
|
||||
auto rcc_s = get_env("RESET_COUNTERS_AT_CUTOFF");
|
||||
if (!rcc_s.empty()) reset_counters_at_cutoff = (rcc_s == "true");
|
||||
auto bto_s = get_env("BATCH_TIMEOUT_SECONDS");
|
||||
if (!bto_s.empty()) batch_timeout_seconds = std::stof(bto_s);
|
||||
auto ibl_s = get_env("IGNORE_BATCH_LABEL_TIMEOUT_SECONDS");
|
||||
|
||||
Reference in new issue
Block a user