]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Apply Otto's remarks to the new carbon code 12424/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 23 Jan 2023 11:12:54 +0000 (12:12 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 23 Jan 2023 11:12:54 +0000 (12:12 +0100)
commitb4213f4c266e354a9de30375a7d103b37aac7911
tree482f38af5e6633c6131f2a375af898744efbcbc8
parent5552745fa8c74ade21ab9b7b4e9afbaa86f21409
dnsdist: Apply Otto's remarks to the new carbon code

- We now explicitly convert to double, making sure that we will not
  overflow by restricting the value of the counter
- Clear the endpoints list when the carbon threads are started, to
  make clear we do not need them anymore
- Move the endpoints passed to the carbon threads, to make static
  analysis tools happy.
pdns/dnsdist-carbon.cc