diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 06d3c509c09c9..718e97e6046e4 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1838,7 +1838,7 @@ static void startDoResolve(void *p) else g_stats.answersSlow++; - uint64_t newLat=(uint64_t)(spent*1000000); + uint64_t newLat=(uint64_t)(spent*static_cast(1000000)); newLat = min(newLat,(uint64_t)(((uint64_t) g_networkTimeoutMsec)*1000)); // outliers of several minutes exist.. g_stats.avgLatencyUsec=(1-1.0/g_latencyStatSize)*g_stats.avgLatencyUsec + (float)newLat/g_latencyStatSize; // no worries, we do this for packet cache hits elsewhere