Skip to content

Commit

Permalink
fix incorrect price calculation in sf orders ls (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca authored Feb 7, 2025
1 parent 6d5c61b commit cffc4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/orders/OrderDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function orderDetails(order: HydratedOrder) {
const duration = dayjs(order.end_at).diff(order.start_at);
const durationInHours = duration === 0 ? 1 : duration / 1000 / 60 / 60;
const pricePerGPUHour =
(order.price * order.quantity) / GPUS_PER_NODE / durationInHours / 100;
order.price / (order.quantity * durationInHours * GPUS_PER_NODE) / 100;
const durationFormatted = formatDuration(duration);

let executedPricePerGPUHour;
Expand Down

0 comments on commit cffc4ab

Please sign in to comment.