Skip to content

Commit

Permalink
fix quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Oct 11, 2024
1 parent 14c66bf commit 7924018
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function buyOrderAction(options: SfBuyOptions) {
console.log(
`Found availability from ${c.green(quote.start_at)} to ${c.green(quote.end_at)} (${c.green(formatDuration(durationSeconds * 1000))}) at ${priceLabelUsd} total (${priceLabelPerGPUHour}/GPU-hour)`,
);
didQuote = true;
return;
} else if (!priceCents) {
const quote = await getQuote({
instanceType: options.type,
Expand All @@ -185,7 +185,6 @@ async function buyOrderAction(options: SfBuyOptions) {
return logAndQuit("Not enough data exists to quote this order.");
}
priceCents = aggressivePrice;
didQuote = false;
}
}

Expand Down

0 comments on commit 7924018

Please sign in to comment.