Skip to content
  • juga's avatar
    fix: v3bwfile: Use bytes to compare bandwidth sum · 4adb743f
    juga authored
    Use bytes to compare the sum of scaled bandwidth (in KB) with the
    sum of the consensus one (previously converted to Bytes measured.
    Also:
    - Check that the bandwidth attribute exists, since it was not
      stored in older versions.
    - Do not sum the bw=1 as a result of the relays being unmeasured.
    - Calculate the percentage difference as two difference values.
    - Log which were actually the bandwidth sums.
    4adb743f