Half life calculation wrong

Created on 21 August 2015, over 9 years ago
Updated 3 February 2025, 26 days ago

The half life specified on the admin form for creating a decay profile is arbitarily divided by 10 in plugins/export_ui/decay_profile.inc line 201 so a six hour half life is actually stored as 2160 instead of 21600 secs in the profile. It appears that no account is taken of this division when the half life is actually retrieved from the profile (radioactivity.module line 453) or used (radioactivity.module line 494) which results in half lifes actually being 10% of those selected.

Is there a reason to divide the half life seconds by 10 when storing it?

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.10

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom dippers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    Drupal 7 is no longer supported.

    I checked out 7.x-2.10 and the line numbers you provided don't correspond exactly to the code 7.x-2.10, but glancing at the code I can't find anything similar in the 4.x version of Radioactivity. I will however keep this in mind as I continue to refactor the code.

    If this is still a problem in Radioactivity 4.x, please open a new issue with instructions for how to reproduce the problem.

Production build 0.71.5 2024