Fix displayed plans in Top/Worst N tables

A value was transposed in the IPStats to IPStats transit
conversion. The UI now displays (max download/max upload)
correctly.

Fix an accidental inclusion of a console.log statement
logging needlessly.
This commit is contained in:
Herbert Wolverson 2023-03-31 14:36:43 +00:00
parent 04bc7326ad
commit fada0a6e92
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ impl From<&IpStats> for IpStatsWithPlan {
&circuit.circuit_name &circuit.circuit_name
}; };
result.ip_address = format!("{} ({})", name, result.ip_address); result.ip_address = format!("{} ({})", name, result.ip_address);
result.plan = (circuit.download_max_mbps, circuit.download_min_mbps); result.plan = (circuit.download_max_mbps, circuit.upload_max_mbps);
} }
} }

View File

@ -171,7 +171,7 @@
// Loads the complete ringbuffer for initial display // Loads the complete ringbuffer for initial display
function fillCurrentThroughput() { function fillCurrentThroughput() {
msgPackGet("/api/throughput_ring_buffer", (tp) => { msgPackGet("/api/throughput_ring_buffer", (tp) => {
console.log(tp); //console.log(tp);
const bits = 0; const bits = 0;
const packets = 1; const packets = 1;
const shaped = 2; const shaped = 2;