mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Improved redaction for Sankey displays
This commit is contained in:
parent
f41e4c9133
commit
cabbcf92c0
@ -98,7 +98,7 @@ function start() {
|
|||||||
fontSize: 6,
|
fontSize: 6,
|
||||||
color: "#999"
|
color: "#999"
|
||||||
};
|
};
|
||||||
if (redact) label.fontSize = 0;
|
if (redact) label.backgroundColor = label.color;
|
||||||
|
|
||||||
nodes.push({
|
nodes.push({
|
||||||
name: data[i][1].name,
|
name: data[i][1].name,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import {BaseDashlet} from "./base_dashlet";
|
import {BaseDashlet} from "./base_dashlet";
|
||||||
import {clearDiv, simpleRowHtml, theading} from "../helpers/builders";
|
import {lerpGreenToRedViaOrange} from "../helpers/scaling";
|
||||||
import {formatThroughput, formatRetransmit, formatCakeStat, lerpGreenToRedViaOrange} from "../helpers/scaling";
|
|
||||||
import {DashboardGraph} from "../graphs/dashboard_graph";
|
import {DashboardGraph} from "../graphs/dashboard_graph";
|
||||||
import {isRedacted} from "../helpers/redact";
|
import {isRedacted} from "../helpers/redact";
|
||||||
|
|
||||||
@ -92,7 +91,7 @@ export class TopTreeSankey extends BaseDashlet {
|
|||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
color: "#999"
|
color: "#999"
|
||||||
};
|
};
|
||||||
if (redact) label.fontSize = 0;
|
if (redact) label.backgroundColor = label.color;
|
||||||
|
|
||||||
let name = r[1].name;
|
let name = r[1].name;
|
||||||
let bytes = r[1].current_throughput[0];
|
let bytes = r[1].current_throughput[0];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import {DashboardGraph} from "./dashboard_graph";
|
import {DashboardGraph} from "./dashboard_graph";
|
||||||
import {lerpColor, lerpGreenToRedViaOrange, scaleNumber} from "../helpers/scaling";
|
import {lerpColor, lerpGreenToRedViaOrange, scaleNumber} from "../helpers/scaling";
|
||||||
|
import {isRedacted} from "../helpers/redact";
|
||||||
|
|
||||||
export class TopNSankey extends DashboardGraph {
|
export class TopNSankey extends DashboardGraph {
|
||||||
constructor(id) {
|
constructor(id) {
|
||||||
@ -59,6 +60,7 @@ export class TopNSankey extends DashboardGraph {
|
|||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
color: "#999"
|
color: "#999"
|
||||||
};
|
};
|
||||||
|
if (isRedacted()) label.backgroundColor = label.color;
|
||||||
|
|
||||||
let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits.down + "/" + r.tcp_retransmits.up + ")";
|
let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits.down + "/" + r.tcp_retransmits.up + ")";
|
||||||
let bytes = r.bits_per_second.down / 8;
|
let bytes = r.bits_per_second.down / 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user