We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 213c855 commit e1fbc8aCopy full SHA for e1fbc8a
1 file changed
src/lib/buy.ts
@@ -293,8 +293,9 @@ function confirmPlaceOrderMessage(options: BuyOptions) {
293
timeDescription = `from ${startAtLabel} (${c.green(fromNowTime)}) until ${endsAtLabel}`;
294
}
295
296
- const durationInSeconds =
297
- options.endsAt.getTime() / 1000 - options.startsAt.getTime() / 1000;
+ const durationInSeconds = Math.ceil(
+ (options.endsAt.getTime() - options.startsAt.getTime()) / 1000,
298
+ );
299
const pricePerGPUHour = totalPriceToPricePerGPUHour(
300
options.priceCenticents,
301
durationInSeconds,
0 commit comments