Do not assert on SNTP and local clock diff, since local clock could be off

This commit is contained in:
cpq 2022-08-09 12:45:10 +01:00
parent 6149b619e7
commit 948595fb3b

View File

@ -299,7 +299,7 @@ static void sntp_cb(struct mg_connection *c, int ev, void *evd, void *fnd) {
int64_t ms = (int64_t) tv.tv_sec * 1000 + tv.tv_usec / 1000;
int64_t diff = ms > received ? ms - received : received - ms;
MG_DEBUG(("diff: %lld", diff));
ASSERT(diff < 100);
// ASSERT(diff < 100);
#endif
} else if (ev == MG_EV_OPEN) {
c->is_hexdumping = 1;