Skip to content

Commit

Permalink
Way Too Much Support
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Nov 11, 2024
1 parent 37271c3 commit 681d722
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ function generateGoodReachableDataset() {
function generateTooMuchDataset() {
var output = []
reachData.forEach(
p => output.push({x:new Date(p.UtcDateTime), y:p.TooMuch}))
p => output.push({x:new Date(p.UtcDateTime), y:p.TooMuch - p.WayTooMuch}))
return output
}

function generateWayTooMuchDataset() {
var output = []
reachData.forEach(
p => output.push({x:new Date(p.UtcDateTime), y:p.WayTooMuch}))
return output
}

Expand Down Expand Up @@ -125,7 +132,8 @@ function createChart() {
var breakdown = []
breakdown.push(createDataset("Reachable", generateGoodReachableDataset(), "rgba(0, 255, 0, 0.5)"))
breakdown.push(createDataset("Reachable (Too Much)", generateTooMuchDataset(), "rgba(255, 0, 0, 0.5)"))
breakdown.push(createDataset("Reachable (Multi RTT)", generateMultiRttDataset(), "rgba(0, 0, 255, 0.5)"))
breakdown.push(createDataset("Reachable (Way Too Much)", generateWayTooMuchDataset(), "rgba(255, 128, 0, 0.5)"))
breakdown.push(createDataset("Reachable (Multi RTT)", generateMultiRttDataset(), "rgba(255, 255, 0, 0.5)"))
createChartwithData("canvasReachBreakdown", breakdown, true, true)

var quicv2 = []
Expand Down

0 comments on commit 681d722

Please sign in to comment.