From 6ea614eb556b5f25f072fc6853ed057d4f0a9991 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 24 Apr 2022 19:42:57 -0600 Subject: [PATCH] Chart colors + rx chart bugfix --- static/chart.mjs | 2 +- static/index.html | 4 ++-- static/vail.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/chart.mjs b/static/chart.mjs index 743f780..a29c13b 100644 --- a/static/chart.mjs +++ b/static/chart.mjs @@ -60,7 +60,7 @@ class HistoryChart { let now = Date.now() if (!when) when=now - this.data.push([now, value]) + this.data.push([when, value]) this.data.sort() let earliest = now - this.duration diff --git a/static/index.html b/static/index.html index 1eca0d1..69e3d9b 100644 --- a/static/index.html +++ b/static/index.html @@ -95,8 +95,8 @@
- - + +
diff --git a/static/vail.mjs b/static/vail.mjs index 7aadab7..25b52d0 100644 --- a/static/vail.mjs +++ b/static/vail.mjs @@ -146,7 +146,7 @@ class VailClient { let chart = tx?this.txChart:this.rxChart if (chart) { chart.SetAt(1, when) - chart.SetAt(0, when) + chart.SetAt(0, when+duration) } }