@blockrun/franklin 3.15.102 → 3.15.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stats/cost-log.js +1 -1
- package/package.json +1 -1
package/dist/stats/cost-log.js
CHANGED
|
@@ -131,7 +131,7 @@ export function loadSdkSettlements(opts) {
|
|
|
131
131
|
function dedupeRows(rows) {
|
|
132
132
|
const seen = new Map();
|
|
133
133
|
for (const r of rows) {
|
|
134
|
-
const bucket = Math.
|
|
134
|
+
const bucket = Math.floor(r.ts / 1000);
|
|
135
135
|
const microUsd = Math.round(r.costUsd * 1e6);
|
|
136
136
|
const key = `${bucket}|${r.endpoint}|${r.model ?? ''}|${microUsd}`;
|
|
137
137
|
// Keep the FIRST row in each bucket (chronologically earliest by ts).
|
package/package.json
CHANGED