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) } }