bareos: master b82aa1f1

Author Committer Branch Timestamp Parent
Sebastian Sura Bareos Bot master 2023-07-14 08:16 master 4dc2c58d Pending
Changeset bsr: make conditional easier to understand

Testing whether two intervals intersect -- which is what the
conditional is trying to do -- can be easily done with

a <= d && b >= c,

where the intervals are [a, b] and [c, d] with a<=b and c<=d.
It is then easy to check that this is equivalent to

max(a, c) <= min(b, d),

which is what the code now does.
mod - core/src/dird/bsr.cc Diff File