Build netd with a built-in resolver library
Test: atest netd_unit_test netd_integration_test
Change-Id: Ied9f5b1328918793521a8d6f82afdfc6481fd545
diff --git a/res_stats.c b/res_stats.c
index 7ac5a4c..e5a41ab 100644
--- a/res_stats.c
+++ b/res_stats.c
@@ -20,7 +20,6 @@
#include <async_safe/log.h>
-#include "isc/eventlib.h"
#include "resolv_stats.h"
#define DBG 0
@@ -135,9 +134,7 @@
success_rate);
}
if (success_rate < params->success_threshold) {
- // evNowTime() is used here instead of time() to stay consistent with the rest of
- // the code base
- time_t now = evNowTime().tv_sec;
+ time_t now = time(NULL);
if (now - last_sample_time > params->sample_validity) {
// Note: It might be worth considering to expire old servers after their expiry
// date has been reached, however the code for returning the ring buffer to its