Minor refactoring
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 39s

This commit is contained in:
Stephen Seo 2024-09-10 15:39:16 +09:00
parent 7fec8cc071
commit 5303bbe5fd
2 changed files with 4 additions and 3 deletions

View file

@ -18,6 +18,7 @@
#define SEODISPARATE_COM_C_SIMPLE_HTTP_CONSTANTS_H_
#define C_SIMPLE_HTTP_SLEEP_NANOS 1000000
#define C_SIMPLE_HTTP_TRY_CONFIG_RELOAD_NANOS 4000000000
#define C_SIMPLE_HTTP_RECV_BUF_SIZE 1024
#define C_SIMPLE_HTTP_CONFIG_BUF_SIZE 1024
#define C_SIMPLE_HTTP_QUOTE_COUNT_MAX 3

View file

@ -162,9 +162,9 @@ int main(int argc, char **argv) {
// xxxx xxx1 - config needs to be reloaded.
unsigned int flags = 0;
const unsigned int config_try_reload_ticks =
4000000000 / C_SIMPLE_HTTP_SLEEP_NANOS;
unsigned int config_try_reload_ticks_count = 0;
const size_t config_try_reload_ticks =
C_SIMPLE_HTTP_TRY_CONFIG_RELOAD_NANOS / C_SIMPLE_HTTP_SLEEP_NANOS;
size_t config_try_reload_ticks_count = 0;
unsigned int config_try_reload_attempts = 0;
while (C_SIMPLE_HTTP_KEEP_RUNNING) {