diff options
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r-- | src/ingestor.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 42c6699..afd4a0f 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -13,12 +13,16 @@ #include <sys/utsname.h> namespace WebStat { + using namespace std::chrono; + using namespace std::chrono_literals; + struct IngestorSettings : Settings { std::string dbConnStr = "dbname=webstat user=webstat"; std::string userAgentAPI = "https://useragentstring.com"; std::filesystem::path fallbackDir = "/var/log/webstat"; unsigned int dbMax = 4; unsigned int dbKeep = 2; + int idleJobsAfter = duration_cast<milliseconds>(1min).count(); }; class Ingestor { |