<html><head></head><body>Thank you for the prompt investigation.<br>
<br>
I would be happy to test this whenever you are ready (or you could use my subsurface div XML), but I've had some trouble trying to build 4.5.3.  I might need an AppImage to do so.<br><br><div class="gmail_quote">On February 24, 2016 8:49:31 AM EST, Miika Turkia <miika.turkia@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">I think I see the bug in XSLT transform, naturally hidden in common<br />templates and not on the actual file doing the conversion to<br /><a href="http://divelogs.de">divelogs.de</a> format. Looks like using only one decimal has been there<br />from the beginning. Makes me wonder if Richard has just been lucky<br />with an earlier version of Subsurface. Anyway, I'll send a patch<br />shortly for this.<br /><br />miika<br /><br />On Wed, Feb 24, 2016 at 12:27 PM, Rainer Mohr <mail@divelogs.de> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> OK, found the uploaded DLD file.<br /> This dive: <a href="https://en.divelogs.de/dive/1659944">https://en.divelogs.de/dive/1659944</a><br /> has <WEIGHT>9.1</WEIGHT>in the XML<br /> So converting this to lbs: Divide by 0.4536 gives me 20.06 lbs, which is<br /> diplayed as 20.1 lbs (I do round to one digit for displaying).<br
/><br /> So now the question is: At which point did the 9.1 get its value for putting<br /> it into the XML. If the subsurface conversion from the entered lbs to stored<br /> metric uses the same factor (which I do believe), it should be 9.072 kilos.<br /><br /> I guess your subsurface file would now come in handy to check whats in<br /> there.<br /><br /> Thanks,<br /> Rainer<br /><br /><br /> Am 24.02.16 um 11:13 schrieb Richard Houser:<br /><br /> My id there is DiverMidMi, so feel free to look at the whole logbook. All my<br /> logs before this February display the values I see in Subsurface. Those were<br /> initially entered in 4.4.2. The new dives from this month show the excess<br /> weight. I can supply the actual Subsurface xml entries after I get home<br /> (probably tomorrow, last plane lands in a blizzard).<br /><br /> The computer dives were one of these depending on the date:<br /><br /> A300 CS -> ACI (Aeris proprietary app) -> CVS -> Subsurface -> export
to<br /> <a href="http://divelogs.de">divelogs.de</a> option --- my first 10ish dives in Florida last year. I did have<br /> to do some really minor cleanup to the original XML (minutes vs. Seconds on<br /> samples if I recall)<br /><br /> A300 CS -> Subsurface > export to <a href="http://divelogs.de">divelogs.de</a> (switching from Mageia<br /> Subsurface 4.4.2 to Subsurface 4.5.3 Appimage before the dives this month.<br /><br /> On February 24, 2016 3:49:42 AM EST, Rainer Mohr <mail@divelogs.de> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><br /> Am 24.02.16 um 07:42 schrieb Dirk Hohndel:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><br />  On Wed, Feb 24, 2016 at 08:10:04AM +0200, Miika Turkia wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e;
padding-left: 1ex;"><br />  On Wed, Feb 24, 2016 at 12:52 AM, Dirk Hohndel <dirk@hohndel.org><br /> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"><br />  On Tue, Feb 23, 2016 at 01:55:28PM -0500, Richard Houser wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"><br />  #4 Dives exported from subsurface to <a href="http://divelogs.de">divelogs.de</a> are now showing an<br />  additional 0.1lb more than what they show in subsurface.<br /></blockquote><br />  Rounding error somewhere. Silly American<br /> pounds.<br /></blockquote><br />  Both Subsurface and <a href="http://divelogs.de">divelogs.de</a> work in metric units internally. I<br />  just did a quick test and 5lb turns out to be 2.268 kg in Subsurface<br />  and is displayed as 2.2 kg on the divelist. <a href="http://Divelogs.de">Divelogs.de</a> displays this<br
/>  as 2.3 kg (as is correct rounding). However, it seems that <a href="http://divelogs.de">divelogs.de</a><br />  uses this rounded number when displaying the imperial weight (5.1<br />  lbs). What has changed, I have no idea, but Rainer might be able to<br />  clarify. (Us showing incorrect metric rounding is irrelevant regarding<br />  <a href="http://divelogs.de">divelogs.de</a> import/export as we use the exact value in calculations<br />  and export.)<br /></blockquote><br />  That's odd, Rainer. Why would you convert the rounded value?<br /></blockquote><br /> I don't...<br /><br /> Just entered a weight of 2.268 kilos in a dive at <a href="http://divelogs.de">divelogs.de</a> (which<br /> I<br /> do round to 2 digits, as I never thought a few grams would be of<br /> importance).<br /> This results in 2.27 kilos in the database and diplays as exactly 5 lbs<br /> on the dive after setting my logbook to imperial. I have the feeling,<br /> that the dive had 2.3 kilos when it got
into <a href="http://divelogs.de">divelogs.de</a> (as this would<br /> explain the 5.1 lbs). I don't do any additional rounding when reading<br /> the XML of the DLD files, so I'd like to check what got exported to<br /> <a href="http://divelogs.de">divelogs.de</a><br /><br /> Richard, could you please give me a link to the dive? How did the dive<br /> get into <a href="http://divelogs.de">divelogs.de</a>? The exact path of where the dive went in its<br /> digital life would help figure out where the rounding got screwed up.<br /><br /> Thanks,<br /> Rainer</blockquote><br /><br /> --<br /> Sent from my Android device with K-9 Mail. Please excuse my brevity.</blockquote><br /><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>