clawculator 2.3.0 → 2.3.1
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/package.json
CHANGED
|
@@ -690,7 +690,7 @@ function analyzeSessions(sessionsPath) {
|
|
|
690
690
|
|
|
691
691
|
const ageMs = updatedAt ? Date.now() - new Date(updatedAt).getTime() : null;
|
|
692
692
|
const ageDays = ageMs ? ageMs / (1000 * 3600 * 24) : null;
|
|
693
|
-
const dailyCost = (ageDays && ageDays > 0
|
|
693
|
+
const dailyCost = (ageDays && ageDays > 1.0 && realCost > 0) ? realCost / ageDays : null;
|
|
694
694
|
|
|
695
695
|
const realModelKey = resolveModel(realModel);
|
|
696
696
|
breakdown.push({
|
package/src/analyzer.js
CHANGED
|
@@ -690,7 +690,7 @@ function analyzeSessions(sessionsPath) {
|
|
|
690
690
|
|
|
691
691
|
const ageMs = updatedAt ? Date.now() - new Date(updatedAt).getTime() : null;
|
|
692
692
|
const ageDays = ageMs ? ageMs / (1000 * 3600 * 24) : null;
|
|
693
|
-
const dailyCost = (ageDays && ageDays > 0
|
|
693
|
+
const dailyCost = (ageDays && ageDays > 1.0 && realCost > 0) ? realCost / ageDays : null;
|
|
694
694
|
|
|
695
695
|
const realModelKey = resolveModel(realModel);
|
|
696
696
|
breakdown.push({
|