ccus-cli 0.1.15 → 0.1.16
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/lib/dashboard.js +1 -1
- package/package.json +1 -1
package/dist/lib/dashboard.js
CHANGED
|
@@ -100,7 +100,7 @@ function renderChart(buckets) {
|
|
|
100
100
|
usage: entry.value,
|
|
101
101
|
label: (0, time_1.formatLocalTimestamp)(new Date(entry.bucket.bucketStart)),
|
|
102
102
|
}));
|
|
103
|
-
const fiveHourPoints = collectPoints((bucket) => bucket.
|
|
103
|
+
const fiveHourPoints = collectPoints((bucket) => bucket.maxUsagePct);
|
|
104
104
|
const sevenDayPoints = collectPoints((bucket) => bucket.avgSevenDayUsagePct);
|
|
105
105
|
const linePathOf = (points) => points.map((point, index) => `${index === 0 ? "M" : "L"}${point.x.toFixed(2)} ${point.y.toFixed(2)}`).join(" ");
|
|
106
106
|
const fiveHourLine = linePathOf(fiveHourPoints);
|