diff options
author | Lukáš Ondráček <lukas.ondracek@nic.cz> | 2024-07-30 16:50:41 +0200 |
---|---|---|
committer | Lukáš Ondráček <lukas.ondracek@nic.cz> | 2024-07-30 16:50:41 +0200 |
commit | be87bc83b5f07ee64582ca8524db17d82f9f052d (patch) | |
tree | 7a4c61936fb1f9cb06aaa5f95c52b268bfe8ec65 /daemon/defer.c | |
parent | defer: fix DoH (diff) | |
download | knot-resolver-be87bc83b5f07ee64582ca8524db17d82f9f052d.tar.xz knot-resolver-be87bc83b5f07ee64582ca8524db17d82f9f052d.zip |
defer: fix/hide tidy/trivial_checks warnings
Diffstat (limited to 'daemon/defer.c')
-rw-r--r-- | daemon/defer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/defer.c b/daemon/defer.c index 89d79265..1908f478 100644 --- a/daemon/defer.c +++ b/daemon/defer.c @@ -21,7 +21,8 @@ #define KRU_CAPACITY (1<<10) #define MAX_DECAY (KRU_LIMIT * 0.0006929) // -> halving counters in 1s -#define TIME_MULT 1/1 // max fraction of rate limit filled by one cpu (multiplies large int) +#define TIME_MULT 1/1 // NOLINT for now, TODO improve readability + // max fraction of rate limit filled by one cpu (multiplies large int) // TODO divide by #cpus? #define REQ_TIMEOUT 5000000 // ns (THREAD_CPUTIME), older deferred queries are dropped |