golemfactory / golem-core-python

GNU General Public License v3.0
3 stars 2 forks source link

LinearAverageCostPricing initial_price calculation fix #126

Closed approxit closed 9 months ago

approxit commented 9 months ago

What I've done:

As duration_cost and cpu_cost are normalized from per-second-cost to be multiplied by avg duration, doing so with initial price (normalizing to per-second-cost and multiplying by avg duration) is redundant, so sole value is enough.