Skip to content

Commit

Permalink
fix format bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Sep 26, 2024
1 parent 213c855 commit e1fbc8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ function confirmPlaceOrderMessage(options: BuyOptions) {
timeDescription = `from ${startAtLabel} (${c.green(fromNowTime)}) until ${endsAtLabel}`;
}

const durationInSeconds =
options.endsAt.getTime() / 1000 - options.startsAt.getTime() / 1000;
const durationInSeconds = Math.ceil(
(options.endsAt.getTime() - options.startsAt.getTime()) / 1000,
);
const pricePerGPUHour = totalPriceToPricePerGPUHour(
options.priceCenticents,
durationInSeconds,
Expand Down

0 comments on commit e1fbc8a

Please sign in to comment.