feat(automation): Be able to evaluate math in automations with variables #2342
cy1der
started this conversation in
Feature Requests, Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I recently got into a new tracker and I went to set up my usual pair of automations to abide by the hit & run rules (below), but this tracker's minimum seeding time is unlike others, the minimum seeding time is proportionate to the size where it starts at 3 days and an extra 5 hours per GB over 10GB with a max of 3 weeks. This got me thinking, it would be cool if automations could be a little "smarter".
Imagine instead of a safe-ish hard-coded 2 weeks in the automation, I can write something like
ceil(min(259200 + (18000 * ((max(size, 10737418240) - 10737418240) / 1073741824)), 1814400))(the units of all the numbers from left to right for clarity: seconds, seconds, bytes, bytes, bytes, seconds) and then I can come up with some other formula for share limits afterwards. This can drastically improve automations for unique setups.minSeedTime.json
shareLimits.json
All reactions