Skip to content

Commit

Permalink
Merge pull request #244 from golemfactory/bugfix/missing-thread-count…
Browse files Browse the repository at this point in the history
…-in-cost-estimation

fix: factored thread count for hourly cost estimation when doing mark…
  • Loading branch information
mgordel committed Sep 3, 2024
2 parents 482875b + 23bc8f8 commit 49ed601
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/market/market.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ marketCommand
if (!maxHourPrice) {
return true;
}
const hourlyPrice = offer.pricing.start + offer.pricing.cpuSec * 3600 + offer.pricing.envSec * 3600;

const hourlyPrice =
offer.pricing.start + offer.pricing.cpuSec * 3600 * offer.cpuThreads + offer.pricing.envSec * 3600;

return hourlyPrice <= maxHourPrice;
};

Expand Down

0 comments on commit 49ed601

Please sign in to comment.