<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Robert, <br>
    </div>
    <div class="moz-cite-prefix">The new calculation using 6/5 is
      exactly double the OTU value that is computed with the Baker
      (=Clark) algorithm.</div>
    <div class="moz-cite-prefix">Change the 60 to 120?</div>
    <div class="moz-cite-prefix">Kind regards,</div>
    <div class="moz-cite-prefix">wf<br>
    </div>
    <br>
    <blockquote type="cite"
cite="mid:Subsurface-divelog%2Fsubsurface%2Fpull%2F1851%2Freview%2F176067163@github.com">
      <p>Argh, I had my maths wrong (6/5 instead of 5/6, which makes me
        think, didn't the original literature have 1 .2 there?). OK,
        assuming 5/6 is correct, have a look at <a
href="https://github.com/atdotde/subsurface/blob/c9d550e36fbbe4a3a10a6add808935c82c92efb6/core/divelist.c#L209"
          moz-do-not-send="true">https://github.com/atdotde/subsurface/blob/c9d550e36fbbe4a3a10a6add808935c82c92efb6/core/divelist.c#L209</a>
        This formula seems to get it (sufficiently) right. Have a look
        at that branch, that is not for merging but it has all the
        debugging info in it. If you like it, you could take that
        formula, get rid of the printf and your old formula (that is now
        with delta_old), and instead fo the delta do out += immediately.
        Also in the if's further up, it's now fine to have po2 = 500
        since we nowhere divide by this anymore.</p>
      <p>Still need to write that blog post...</p>
      <p
        style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
        You are receiving this because you authored the thread.<br>
        Reply to this email directly, <a
href="https://github.com/Subsurface-divelog/subsurface/pull/1851#discussion_r234420744"
          moz-do-not-send="true">view it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/AE1-sn7aMs3IS9tfotLj2z4IFS5X37Auks5uwHUtgaJpZM4YYa-4"
          moz-do-not-send="true">mute the thread</a>.<img
src="https://github.com/notifications/beacon/AE1-srA3pMbxcSOZQJ_A6Ikh6IcDrJ1Hks5uwHUtgaJpZM4YYa-4.gif"
          alt="" moz-do-not-send="true" width="1" height="1"></p>
      <script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Subsurface-divelog/subsurface","title":"Subsurface-divelog/subsurface","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/Subsurface-divelog/subsurface"}},"updates":{"snippets":[{"icon":"PERSON","message":"@atdotde commented on #1851"}],"action":{"name":"View Pull Request","url":"https://github.com/Subsurface-divelog/subsurface/pull/1851#discussion_r234420744"}}}</script>
      <script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/Subsurface-divelog/subsurface/pull/1851#discussion_r234420744",
"url": "https://github.com/Subsurface-divelog/subsurface/pull/1851#discussion_r234420744",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "@atdotde commented on 1851",
"sections": [
{
"text": "",
"activityTitle": "**Robert C. Helling**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@atdotde",
"facts": [

]
}
],
"potentialAction": [
{
"targets": [
{
"os": "default",
"uri": "https://github.com/Subsurface-divelog/subsurface/pull/1851#discussion_r234420744"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 409055160\n}"
}
],
"themeColor": "26292E"
}
]</script>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

<br>
<div style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:10.0pt;line-height:105%;font-family:"Segoe UI",sans-serif">This message and attachments are subject to a disclaimer.<br>
Please refer to <a href="http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf" target="_blank">http://upnet.up.ac.za/<wbr>services/it/documentation/<wbr>docs/004167.pdf</a> </span><span style="font-size:10pt;line-height:105%;font-family:Tahoma,sans-serif">for
full details.</span></div>