diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-28 14:12:10 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-28 14:16:29 -0800 |
commit | 020154215dd4de641a18c311f2844aea91bf2e88 (patch) | |
tree | 22393490a5fdc7e822529bc11a6cb996fb1c3752 /uemis-downloader.c | |
parent | 3b136f23ee4f3ddee1c157dfee2ff84fe6fa130e (diff) | |
download | subsurface-020154215dd4de641a18c311f2844aea91bf2e88.tar.gz |
Don't match existing dives by date if the dive computers are known to be different
When downloading from a dive computer, we fall back on matching the
exact date of the dive if we can't tell whether we already have that
exact dive computer data some other way.
However, if you have multiple dive computers and they are sufficiently
well synchronized, they might actually have the exact same date,
despite the fact that we do want to download both dive computers. We
do check the dive start to the exact second, so this sounds unlikely,
but with dive computers rounding time to the next minute etc, it's not
as unlikely as you'd think. Dirk hit it.
So when we match against date, do check that the dive computer might
actually be one we've already downloaded from. If we have full model
information, we can dismiss the "match date" logic.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
0 files changed, 0 insertions, 0 deletions